-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
46 lines (38 loc) · 1005 Bytes
/
.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
# Defines the options for building the project on linux with Travis-CI
# For more configuration options, see the wiki:
# https://github.com/craigcitro/r-travis/wiki/Porting-to-native-R-support-in-Travis
language: r
sudo: required
cache: packages
env:
global:
- R_BUILD_ARGS="--no-build-vignettes --no-manual"
- R_CHECK_ARGS="--no-build-vignettes --no-manual --as-cran"
- NOT_CRAN="true"
- _R_CHECK_FORCE_SUGGESTS_=FALSE
repos:
CRAN: https://cloud.r-project.org
GRAN: https://owi.usgs.gov/R
r_packages: devtools
r_github_packages:
- jimhester/covr
- richfitz/remake
- USGS-R/grithub
addons:
apt:
packages:
- gdal-bin
- libgdal-dev
- libgdal1-dev
- libproj-dev
script:
- |
R CMD build ${R_BUILD_ARGS} .
PKG_FILE_NAME=$(ls -1t *.tar.gz | head -n 1)
travis_wait 20 R CMD check ${R_CHECK_ARGS} "${PKG_FILE_NAME}"
after_success:
- Rscript -e 'covr::coveralls()'
notifications:
email:
on_success: change
on_failure: change