-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
30 lines (25 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
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
language: R
warnings_are_errors: false
before_install:
- sudo apt update
- sudo apt install libudunits2-dev
- sudo apt-get install libgdal1i
- sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable --yes
- sudo apt-get --yes --force-yes update -qq
- sudo apt-get install --yes libudunits2-dev libproj-dev libgeos-dev libgdal-dev
- sudo apt-get install -y libsodium-dev
# The next two commands attempt to reduce build time on travis by :
# - Adding the RStudio binary package repository to the .Rprofile.
# - Adding an HTTPUserAgent to the .Rprofile to enable packages that are installed via Rscript to also use the binary package versions
# See https://www.jumpingrivers.com/blog/r-packages-travis-github-actions-rstudio/
- echo "options(repos = c(CRAN = 'https://packagemanager.rstudio.com/all/__linux__/xenial/latest'))" >> ~/.Rprofile.site
- echo "options(HTTPUserAgent = paste0('R/', getRversion(), ' R (',
paste(getRversion(), R.version['platform'], R.version['arch'], R.version['os']),
')'))" >> ~/.Rprofile.site
r_packages:
- sf
r_github_packages:
- jimhester/covr
after_success:
- Rscript -e 'covr::codecov()'