Skip to content

Commit

Permalink
fix travis
Browse files Browse the repository at this point in the history
  • Loading branch information
mwmclean committed Aug 29, 2017
1 parent 769e983 commit e2f11be
Showing 1 changed file with 22 additions and 9 deletions.
31 changes: 22 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,34 @@
language: R
language: r
r:
- release

dist: trusty # ubuntu 14.04 has additional libraries available
sudo: required
cache: packages
before_cache:
- sudo rm -rf $HOME/R/Library/flip*
- sudo rm -rf $HOME/R/Library/rhtml*

cache: false
# before_cache:
# - sudo rm -rf $HOME/R/Library/flip*
# - sudo rm -rf $HOME/R/Library/rhtml*

warnings_are_errors: false

# install debian libraries to match R-servers
# update pre-installed packages to latest versions
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y libgdal-dev libproj-dev python-protobuf libprotoc-dev libprotobuf-dev libv8-dev librsvg2-dev

r_packages:
- roxygen2
- covr

r_github_packages:
- Displayr/flipExampleData
- Displayr/travisCI

script:
- R CMD build --no-manual --no-build-vignettes --no-resave-data .
- sudo Rscript -e 'require(devtools); install_github("Displayr/flipExampleData")'
- R CMD check --as-cran --no-manual --no-build-vignettes --no-tests *.tar.gz
- sudo Rscript -e 'install.packages("roxygen2")'
- if [ -d tests/testthat ]; then Rscript --default-packages='datasets,utils,grDevices,graphics,stats,methods' -e 'res<-devtools::test(); df <- as.data.frame(res); pass <- sum(df$failed)==0 && all(!df$error); write.csv(df, file="test_results.csv"); quit(status=1-pass, save="no")'; fi

notifications:
Expand All @@ -31,5 +43,6 @@ notifications:
# Warning notifications and downstream package builds are implemented
# by calling R functions so they can be updated in this package without
# committing a new change to .travis.yml in each repository
after_success: >-
Rscript -e "require(devtools); install_github('Displayr/travisCI'); travisCI::NotifyWarnings(); travisCI::TriggerDownstreamBuilds()"
after_success:
- Rscript -e "travisCI::NotifyWarnings(); travisCI::TriggerDownstreamBuilds()"
- Rscript -e "covr::coveralls(type = 'all')"

0 comments on commit e2f11be

Please sign in to comment.