Skip to content

Commit

Permalink
new travis
Browse files Browse the repository at this point in the history
  • Loading branch information
dblodgett-usgs committed Aug 9, 2017
1 parent b2f03c0 commit 13a0af4
Showing 1 changed file with 32 additions and 20 deletions.
52 changes: 32 additions & 20 deletions .travis.yml
@@ -1,33 +1,45 @@
# 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
# Sample .travis.yml for R projects.
#
# See README.md for instructions, or for more configuration options,
# see the wiki:
# https://github.com/craigcitro/r-travis/wiki

language: r
cache: packages
sudo: true
dist: trusty
warnings_are_errors: false

r_build_args: --no-build-vignettes --no-manual --no-multiarch
r_check_args: --no-build-vignettes --no-manual

repos:
CRAN: https://cran.rstudio.com
GRAN: https://owi.usgs.gov/R

before_script:
- Rscript -e "install.packages('knitr')"
- Rscript -e "install.packages('rmarkdown')"
matrix:
include:
- os: linux
r: release
- os: linux
r: devel
env: R_CODECOV=true

addons:
apt:
packages:
- libcurl4-openssl-dev

env:
global:
- R_BUILD_ARGS="--no-vignettes --no-manual"
- R_CHECK_ARGS="--no-vignettes --no-manual --as-cran"
- NOT_CRAN="true"
- _R_CHECK_FORCE_SUGGESTS_=false

warnings_are_errors: true

r_github_packages:
- jimhester/covr

script:
- |
R CMD build .
travis_wait 20 R CMD check EflowStats*tar.gz
after_success:
- Rscript -e 'covr::coveralls()'

after_failure:
- ./travis-tool.sh dump_logs

- if [[ "${R_CODECOV}" ]]; then travis_wait 20 R -e 'covr::coveralls()'; fi

notifications:
email:
on_success: change
Expand Down

0 comments on commit 13a0af4

Please sign in to comment.