|
|
|
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
|
|
|
|
|
|
|
|
language: R
|
|
|
|
sudo: false
|
|
|
|
cache: packages
|
|
|
|
warnings_are_errors: true
|
|
|
|
|
|
|
|
r_github_packages:
|
|
|
|
- r-lib/covr
|
|
|
|
- jimhester/lintr
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
- sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable --yes
|
|
|
|
- sudo apt-get --yes --force-yes update -qq
|
|
|
|
# units/udunits2 dependency:
|
|
|
|
- sudo apt-get install --yes libudunits2-dev
|
|
|
|
# sf dependencies:
|
|
|
|
- sudo apt-get install --yes libproj-dev libgeos-dev libgdal-dev
|
|
|
|
|
|
|
|
after_success:
|
|
|
|
- Rscript -e 'covr::codecov()'
|
|
|
|
- Rscript -e 'lintr::lint_package()'
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
# fast build
|
|
|
|
- r: devel
|
|
|
|
r_build_args: "--no-build-vignettes"
|
|
|
|
r_check_args: "--no-vignettes --no-manual"
|
|
|
|
env: NOT_CRAN=true
|
|
|
|
|
|
|
|
# strict builds
|
|
|
|
- r: devel
|
|
|
|
r_check_args: "--as-cran"
|
|
|
|
env: NOT_CRAN=false
|
|
|
|
- r: release
|
|
|
|
r_check_args: "--as-cran"
|
|
|
|
env: NOT_CRAN=false
|
|
|
|
|