-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
51 lines (40 loc) · 1.07 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
language: R
sudo: required
cache:
packages: true
directories:
- $TRAVIS_BUILD_DIR/packrat/src
- $TRAVIS_BUILD_DIR/packrat/lib
r_packages:
- bookdown
addons:
apt:
packages:
- libudunits2-dev
- libv8-3.14-dev
- libgdal-dev
before_script:
- chmod +x ./_cibuild.sh
#before_install: # Install Ruby and html-proofer
# - rvm get stable --auto-dotfiles
# - rvm install 2.3.3
# - gem install html-proofer
install:
- R -e "0" --args --bootstrap-packrat
- R -e "packrat::restore(restart = FALSE)"
script:
- ./_cibuild.sh
deploy:
provider: pages # Specify the gh-pages deployment method
skip_cleanup: true # Don't remove files
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
local_dir: docs # Deploy the docs folder
on:
branch: master
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true # Speed up the html-proofer
notifications:
email:
on_success: change
on_failure: change