forked from hadley/r-pkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (34 loc) · 1.32 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
language: c
before_install:
- curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh
- chmod 755 ./travis-tool.sh
- ./travis-tool.sh bootstrap
install:
# Install binary pandoc from Rstudio
- export PATH="$HOME/pandoc:$PATH"
- 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
- pandoc --version
# Install jekyll
- travis_retry gem install jekyll mime-types
# Install R packages
- ./travis-tool.sh r_binary_install rjsonio knitr png testthat
- ./travis-tool.sh r_install lubridate pryr nycflights13 microbenchmark stringi
- ./travis-tool.sh github_package rstudio/rmarkdown hadley/bookdown hadley/devtools
- mkdir ~/.R
- cp Makevars ~/.R
script: jekyll build
after_success:
- cp -r figures/ _site/figures
deploy:
provider: s3
access_key_id: AKIAJRIHBGWIWAZYFUFQ
secret_access_key:
secure: "c+2fsBiv47OpL/t7H4AKWB4zpNVNeZZ0Q/41ha48BlqZlgyoINcM1n2D4e0eWixpfSdxT0Uwtccv1rfb6eQj7lTvbz5aniPISobOa6+I4uRSNoAjCYh3BttBL55RFX8NXn9gL/H09kG3SyQ4Eu4By4FFUaPPa3zs5oiNIDYnRN0="
bucket: r-pkgs.had.co.nz
endpoint: r-pkgs.had.co.nz.s3-website-us-east-1.amazonaws.com
local-dir: _site
skip_cleanup: true