diff --git a/.travis.yml b/.travis.yml index f51d086c311e4ac3c2d0ae8bfe60a70459955747..fcff2b160c1a0bcd5a007fb8a01fd5b91d8304be 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,34 +4,40 @@ # see the wiki: # https://github.com/craigcitro/r-travis/wiki -language: objective-c -sudo: required +language: r +cache: packages +matrix: + include: + - os: linux + r: release + - os: linux + r: devel + - os: linux + dist: trusty + env: R_CODECOV=true + r_check_args: '--no-build-vignettes --no-manual --as-cran' +sudo: false + +addons: + apt: + packages: + - libcurl4-openssl-dev env: global: - - R_LIBS="http://cran.rstudio.com" - R_BUILD_ARGS="--no-build-vignettes --no-manual" - R_CHECK_ARGS="--no-build-vignettes --no-manual --as-cran" - - BOOTSTRAP_LATEX="" - NOT_CRAN="true" + - _R_CHECK_FORCE_SUGGESTS_=false + +warnings_are_errors: true -before_install: - - curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh - - chmod 755 ./travis-tool.sh - - ./travis-tool.sh bootstrap - -install: - - ./travis-tool.sh install_deps - - ./travis-tool.sh install_r covr - -script: ./travis-tool.sh run_tests +r_github_packages: + - jimhester/covr after_success: - - Rscript -e 'covr::coveralls()' - -after_failure: - - ./travis-tool.sh dump_logs - + - if [[ "${R_CODECOV}" ]]; then R -e 'covr::codecov()'; fi + notifications: email: on_success: change diff --git a/DESCRIPTION b/DESCRIPTION index 55a1f75076fe7683318fd02de655bbc542c7fe5d..88aaa5283e3bea3bfc4497730c7132b9b53967eb 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -40,9 +40,7 @@ Imports: Suggests: xtable, knitr, - testthat, - geojsonio, - leaflet + testthat VignetteBuilder: knitr BuildVignettes: true BugReports: https://github.com/USGS-R/dataRetrieval/issues