-
Notifications
You must be signed in to change notification settings - Fork 76
/
.travis.yml
28 lines (24 loc) · 826 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
language: r
cache: packages
dist: trusty
sudo: required
warnings_are_errors: false
before_install:
- sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable --yes
- sudo add-apt-repository ppa:opencpu/jq --yes
- sudo apt-get --yes --force-yes update -qq
- sudo apt-get install --yes libudunits2-dev libproj-dev libgeos-dev libgdal-dev libv8-dev
- sudo apt-get install --yes libjq-dev libprotobuf-dev libprotoc-dev protobuf-compiler
r_packages:
- rgdal
- sf
- devtools
script:
- R CMD INSTALL ../spatial-microsim-book/
- Rscript -e 'bookdown::render_book("index.Rmd", output_format = "bookdown::gitbook", clean = FALSE)'
after_success:
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && bash deploy.sh
notifications:
email:
on_success: change
on_failure: change