r4ds/.travis.yml

23 lines
332 B
YAML

language: R
cache:
packages: true
directories:
- _book
addons:
apt:
packages:
- libxml2-dev
before_install:
- nvm install stable
- npm install netlify-cli -g
script:
- Rscript -e 'bookdown::render_book("index.rmd")'
deploy:
provider: script
script: netlify deploy --prod --dir _book
skip_cleanup: true