-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
57 lines (43 loc) · 1.22 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
language: r
sudo: required
dist: trusty
warnings_are_errors: true
r:
- release
# - devel
r_build_args: --no-build-vignettes
os:
- linux
env:
global:
- _R_CHECK_FORCE_SUGGESTS_=FALSE
apt_packages:
- libgeos-dev
- libgeos-c1
- libproj-dev
- libgdal-dev
- curl
- qpdf
- r-cran-rgdal
- r-cran-rgeos
before_install:
- echo "TRAVIS_OS_NAME = $TRAVIS_OS_NAME"
- echo "options(repos = c(CRAN='http://cran.rstudio.com'))" > ~/.Rprofile
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get --yes --force-yes update -qq; fi;
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -y; fi;
before_script:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-add-repository -y ppa:ubuntugis/ubuntugis-unstable; fi;
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update; fi;
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install python-gdal; fi;
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then R -e "install.packages('rgdal')"; fi;
r_packages:
- covr
- rmarkdown
- testthat
after_success:
- Rscript -e 'covr::codecov()'
notifications:
email:
on_success: change
on_failure: change