language: r

r:
  - oldrel
  - release
  - devel

r_github_packages:
  - r-lib/covr

cache: packages

warnings_are_errors: false

after_success:
  # Run and upload test coverage to codecov.io
  - Rscript -e 'covr::codecov()'
  # Build docs
  - Rscript -e 'devtools::document(); pkgdown::build_site()'

deploy:
  # Deploy documentation to Github Pages
  # See https://docs.travis-ci.com/user/deployment/pages/
  provider: pages
  skip-cleanup: true
  github-token: $GITHUB_TOKEN
  local-dir: docs
  on:
    branch: master

language: r

r:
  - oldrel
  - release
  - devel

r_github_packages:
  - r-lib/covr
  - r-lib/pkgdown

cache: packages

warnings_are_errors: false

after_success:
  # Run and upload test coverage to codecov.io
  - Rscript -e 'covr::codecov()'
  # Build docs
  - Rscript -e 'devtools::document(); pkgdown::build_site()'

deploy:
  # Deploy documentation to Github Pages
  # See https://docs.travis-ci.com/user/deployment/pages/
  provider: pages
  skip-cleanup: true
  github-token: $GITHUB_TOKEN
  local-dir: docs
  on:
    branch: master

Install pkgdown for docs deploymnet
Install pkgdown for docs deploymnet
