# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r

language: R
cache: packages

before_cache: Rscript -e 'remotes::install_github("r-lib/pkgdown");remotes::install_github("lockedatapublished/lockedatapkg")'
deploy:
  provider: script
  script: Rscript -e 'pkgdown::deploy_site_github()'
  skip_cleanup: true

after_success:
  - Rscript -e 'covr::coveralls()'

notifications:
  webhooks:
    urls:
      - https://api.netlify.com/build_hooks/5c485816b40a5a017096df38
    on_success: always
    on_failure: never
    on_start: never
    on_cancel: never
    on_error: never
