forked from rstudio/bookdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (26 loc) · 1.58 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
language: r
sudo: false
cache:
packages: yes
directories:
- $HOME/bin
- $TRAVIS_BUILD_DIR/inst/examples/_bookdown_files
env:
global:
- R_PKG="$(basename $TRAVIS_REPO_SLUG)" R_KNITR_OPTIONS="knitr.chunk.tidy=TRUE" PATH=$HOME/bin:$PATH
- secure: B2gZCV0jLwvvIERxorr4R4VntZJZ6DdwLh3diC3sxNTPETCisPmmOAXvHpGVZEMRxHG4mUXv5k+k21z+X6PlqPjTsD5USaM7lI88aGs9k3RoLBUb26o+pgw4uPj40T5QxCbOTGRxy8h6enUvW+e5zV24eAsACytO1SRmctny1hOpLa2RG9NZqIthceVZSqXcXpvB6HOCAiyD4hdIO4EGmTJgJYLPu3vQMujW3jt2V1iOjLfH01NQjyqyRPtxNylMT7B6A22DZDxokRdcVNmwUAVDZfxQicuk+juUP/2MaIGWDdHtYKmR1ilLGroTFVnKGfZgpLcv55WK1ZLsanlUYQb8St2OpjgF3qzSCl1fGKgA6ZHDksu0o0fYQCwEaVlpZamjYVGODFQxrfTwDT279gA8b4eJZ3nOM9o+HHf5VTOUm9H5qbpl0aAaOovQpPbeZAZwfN54fPOqhpvtyomOUXE1dq98MMZcRHjijlmJcviBG7WXTHEFJT9195j7m7Woawa3JdAGUxbH3Uzg77uxJYaTugY9+GF2lo2JrkWIirZ4xBgowM98XGhPHl49DGPhpvwh3fZvIHshwnsbAoBF7weAwb6W+7kFpQRvuVqdGDGC8nWWoFu+iGEMuuoPk9sujVk0T7sOKsUe/TO2Ij1lWoquMVE9PDFKlaNEu0QhJT0=
repos:
XRAN: http://yihui.name/xran
before_install:
- "wget -q http://yihui.name/xran/.gitconfig -O ~/.gitconfig"
- Rscript -e "update.packages(.libPaths()[1], ask = FALSE)"
- export BUILD_ALL="$(git log --format=%B --no-merges -n 1 | grep -E "\[build all\]")"
before_script:
- "[ -x \"$HOME/bin/phantomjs\" ] || Rscript -e \"webshot::install_phantomjs(baseURL="https://github.com/paladox/phantomjs/releases/download/2.1.7/")\""
- R CMD INSTALL .
- cd inst/examples
- "[ ! -z \"$BUILD_ALL\" ] && make all || make gitbook"
- cd ../..
after_success:
- "(wget -q -O - http://yihui.name/xran/r-xran | bash)"
- cd inst/examples; ./deploy_github