Skip to content

Commit

Permalink
adding travis/netlify meta-files
Browse files Browse the repository at this point in the history
  • Loading branch information
henningsway committed Oct 8, 2018
1 parent e559445 commit 2bd465e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions .netlify
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"site_id":"0c247eb5-c48e-45f0-9c7d-9b7a6c746df2","path":"_book"}
22 changes: 22 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
language: R
sudo: false
cache:
packages: true
directories:
- _bookdown_files
- $HOME/.npm

pandoc_version: 2.1.1

before_install:
- mkdir ~/.R
- cp Makevars ~/.R
- npm install netlify-cli -g

script:
- Rscript -e 'bookdown::render_book("index.Rmd")'

deploy:
provider: script
script: netlify deploy -t $NETLIFY_PUBLISH_KEY
skip_cleanup: true
2 changes: 2 additions & 0 deletions Makevars
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CC=clang
CXX=clang++

0 comments on commit 2bd465e

Please sign in to comment.