2015-07-28 05:52:19 +08:00
|
|
|
language: c
|
2015-11-10 21:50:20 +08:00
|
|
|
sudo: false
|
2015-07-28 05:52:19 +08:00
|
|
|
|
2015-11-10 21:50:20 +08:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- r-packages-precise
|
|
|
|
packages:
|
|
|
|
- r-base-dev
|
|
|
|
- r-recommended
|
|
|
|
- libxml2-dev
|
2015-07-28 05:52:19 +08:00
|
|
|
|
2015-11-10 21:50:20 +08:00
|
|
|
env:
|
|
|
|
global:
|
2015-11-11 00:14:13 +08:00
|
|
|
- R_LIBS_USER=$HOME/R/library
|
2015-07-28 05:52:19 +08:00
|
|
|
|
2015-11-10 21:50:20 +08:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $R_LIBS_USER
|
|
|
|
- vendor/bundle
|
2015-11-11 00:14:13 +08:00
|
|
|
- $HOME/.ccache
|
2015-07-28 05:52:19 +08:00
|
|
|
|
2015-11-10 21:50:20 +08:00
|
|
|
install:
|
2015-11-11 00:44:33 +08:00
|
|
|
# Install binary pandoc from Rstudio
|
|
|
|
- mkdir $HOME/pandoc
|
|
|
|
- curl -O https://s3.amazonaws.com/rstudio-buildtools/pandoc-1.12.3.zip
|
|
|
|
- unzip -j pandoc-1.12.3.zip pandoc-1.12.3/linux/debian/x86_64/pandoc
|
|
|
|
-d $HOME/pandoc
|
|
|
|
- chmod +x $HOME/pandoc/pandoc
|
2015-11-11 01:06:27 +08:00
|
|
|
- rm pandoc-1.12.3.zip
|
|
|
|
- export PATH="$HOME/pandoc:$PATH"
|
2015-11-11 00:44:33 +08:00
|
|
|
- pandoc --version
|
|
|
|
|
|
|
|
# Install ruby gems
|
2015-11-11 00:48:47 +08:00
|
|
|
- bundle install --jobs=3 --retry=3 --deployment
|
2015-11-11 00:44:33 +08:00
|
|
|
|
|
|
|
# Install R packages
|
2015-11-10 21:50:20 +08:00
|
|
|
- mkdir -p "$R_LIBS_USER"
|
|
|
|
- Rscript -e 'if (length(find.package("devtools", quiet = TRUE)) == 0L) { install.packages("devtools", repos = "http://cran.rstudio.com") }'
|
2015-11-10 23:02:51 +08:00
|
|
|
- Rscript -e 'devtools::install_github("hadley/devtools")'
|
2015-11-10 21:50:20 +08:00
|
|
|
- Rscript -e 'devtools::install_deps(repos = "http://cran.rstudio.com", dependencies = TRUE)'
|
2015-07-28 05:52:19 +08:00
|
|
|
|
2015-11-10 21:50:20 +08:00
|
|
|
script: bundle exec jekyll build
|
2015-07-28 05:52:19 +08:00
|
|
|
|
|
|
|
after_success:
|
|
|
|
- cp -r figures/ _site/figures
|
2015-07-28 06:05:15 +08:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
provider: s3
|
|
|
|
access_key_id: AKIAJ6PXDYWD72R6HBYA
|
|
|
|
secret_access_key:
|
|
|
|
secure: "KB6D4dRFyqABOUBC6q6CTI7WZQ+4kFOSDWNQFAbXJQR4TzR8J6uddAiSZyG8T1/8z+9Lm1VK417Zi0dGm3r3epbSnLClitBetvE11DoByomK+ey+NJ0MdXuXbFCJhX9l+8QDbDRLd/b2MEr36JXNaNQaLf5wdHImVVfcCm5STAIOM42plYMvz4Uhao+VjIKo+0IqiGHQHsNcU4qQXS4jd4FtO/t1xCwa7SgH0wwV2yJmeh8mM7QpmUEpBcZTHDvqZu6BitxtkYQDCh1iuBwhbPlYug/WOtyHmKYgU/c3+C+xW4OLv10OsE+eK6noEzIXQ80sPIyKMpkn+9P+7MnoRU/oZTXmYJOuXE5mvy+CiJ4TzZZxzB/g8HzklRRI4eFBmJ/zTTMmJMwBdbUhCXepARe4gr7pDFKhSTXvBVxljJBrkiGz6W1JeZ9nKzUbuIlWNJ9aaYM2UDMbRef7xyKlKbBNw1+90aTTW8Jo+0Sz3/R7daBTcnr0Bszg4QCaOMoxJJF/Ty/tTHiComAt/kNRqlSiU2g/Ch0jOz5TRV3c29OjQQ/a9ftf5pqlvgStwjjszgHQfRrd4mxGq2E/1gkPGL7ada+TWPAVjCc8HtPGK/36IjSccFB6qGkwTFf3uOBmAC2XVnJJlwG8v20nL5ZZwpCCbQANeQq/ILQsYUmk7RM="
|
|
|
|
bucket: r4ds.had.co.nz
|
|
|
|
local-dir: _site
|
|
|
|
skip_cleanup: true
|