-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
52 lines (51 loc) · 2.41 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
42
43
44
45
46
47
48
49
50
51
52
language: c
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
sudo: required
dist: trusty
env:
global:
- PATH=$HOME/bin:$PATH
- PHANTOM_JS="phantomjs-2.1.1-linux-x86_64"
- secure: K4JEwdGeZ9xapjHB9pyohmFh1a73iO2OUAQXLhFKIHSFjcJ0wbse9EK+w2/V60DNv7tnfojwMxabXn7mkoN+ma20ifzI9tq9L3xy/P6qRHjra12ktMtgLPDD4b0DRxeQF8nRRo1ovxtk7X+HWxyO2cirgyXXJtS76JF9VMwNQaZIAv80aH/1pb53g/caFONR7k0hiDvhB7Ba2SGINC/lMLyzYR8ytBf5h1oj3gXj0FaIYyPbSLtbEsvAfkDaP3Cx5b5WXmh/TNOVLfmtkpbkbQXYlrKKshDYSQPa8E2A2Y5iXtHS9rjuKWJUQPMFW6zWrpsrF03puyFXXaLtZU6PBECuack+GEYuff5NWYN+aMJQVwCv300nmsD4yWlRVwjLrtJumU3e8be1wr6ElMTm/se0JHKyFOuhNPV/CwkJZQFpc4xbEG7gIWuUjlCVXwOE7xSXIi5W9aKMcJ4t/wuaBcGXKvZTDU0y40tgBvpLNXg5a4eqI1fOo6mzruBafrXxTeLPnk1UcFyEbWrzldRaMSWsnYy7KMP5dT14uIUY5A0+RbVIsgAyh4jS4oPp6PCmYPJZWYsEN/fY0LMgAaigyk35zlrR80G99UTYzSY5hVYEq+if6LNmmExKh83Xsu55MepVgF0V0XzjDOaMgPNdZbCHcoa2/dVKvueH+ywYFv0=
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"
- "./travis-tool.sh install_r_binary Rcpp"
- "./travis-tool.sh install_r jiebaR"
- sudo apt-get install libfreetype6 libfreetype6-dev
- sudo apt-get install libfontconfig1 libfontconfig1-dev
- curl -Lo /tmp/texlive.tar.gz https://github.com/yihui/ubuntu-bin/releases/download/latest/texlive.tar.gz
- tar xzf /tmp/texlive.tar.gz -C ~
- export PATH=/$HOME/texlive/bin/x86_64-linux:$PATH
- tlmgr update --self
- curl -Lo /tmp/pandoc-1.15.2-1-amd64.deb https://github.com/jgm/pandoc/releases/download/1.15.2/pandoc-1.15.2-1-amd64.deb
- sudo dpkg -i /tmp/pandoc-1.15.2-1-amd64.deb
- sudo apt-get install -f
install:
- "./travis-tool.sh install_r_binary Rcpp RCurl stringi plyr dplyr DT"
- "./travis-tool.sh install_github rstudio/bookdown"
- wget https://github.com/wertion/r-travis-mac/releases/download/v0.1/phantomjs-2.1.1-linux-x86_64.tar.bz2
- sudo tar xvjf $PHANTOM_JS.tar.bz2
- sudo mv $PHANTOM_JS /usr/local/share
- sudo ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/local/bin
- cd "$TRAVIS_BUILD_DIR"
- Rscript _render.R
script:
- cd _book
- rm -rf _bookdown_files
- git init
- git checkout -b gh-pages
- git add .
- git -c user.name='travis' -c user.email='[email protected]' commit -m update-doc
- git push --force --quiet "https://qinwf:[email protected]/qinwf/jiebaR.git"
gh-pages > /dev/null 2>&1
notifications:
email:
on_success: change
on_failure: always