forked from rstudio/bookdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (31 loc) · 977 Bytes
/
.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
language: r
pandoc_version: 2.7.3
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
repos:
XRAN: https://xran.yihui.org
before_install:
- "curl https://xran.yihui.org/.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\]")"
jobs:
include:
- r: oldrel
- r: release
before_script:
- "[ -x \"$HOME/bin/phantomjs\" ] || Rscript -e \"webshot::install_phantomjs()\""
- R CMD INSTALL .
- cd inst/examples
- "[ ! -z \"$BUILD_ALL\" ] && make all || make gitbook"
- cd ../..
after_success:
- "(curl https://xran.yihui.org/r-xran | bash)"
- cd inst/examples; ./deploy_github
- r: devel