-
Notifications
You must be signed in to change notification settings - Fork 68
/
previous_travis.yml
31 lines (27 loc) · 1.29 KB
/
previous_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
os:
- linux
- osx
before_install:
# - if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get update; fi
- if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get install -y ghostscript; sudo apt-get install -y libmagick++-dev; sudo add-apt-repository -y ppa:cran/poppler;sudo apt-get install -y libpoppler-cpp-dev; sudo apt-get install -y libv8-dev ; sudo apt-get install -y libudunits2-dev libgdal-dev libgeos-dev libproj-dev libfontconfig1-dev;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install llvm; brew install v8; brew install poppler;
export PATH="/usr/local/opt/llvm/bin:$PATH" &&
export LDFLAGS="-L/usr/local/opt/llvm/lib" &&
export CFLAGS="-I/usr/local/opt/llvm/include"; fi
cache:
packages: yes
directories:
- $TRAVIS_BUILD_DIR/_bookdown_files
sudo: false
pandoc_version: 1.19.2.1
before_script:
- chmod +x ./_build.sh
- chmod +x ./_deploy.sh
- if [ $TRAVIS_OS_NAME = osx ]; then brew tap homebrew/cask; brew cask install phantomJS; brew install imagemagick@6; fi
script:
- R CMD build .
- R CMD INSTALL *tar.gz
- if [ $TRAVIS_OS_NAME = osx ]; then R CMD check *tar.gz ; fi
- if [ $TRAVIS_OS_NAME = linux ]; then R CMD check *tar.gz; fi
- if [ $TRAVIS_OS_NAME = osx ] && [[ $TRAVIS_COMMIT_MESSAGE != *"[nobook]"* ]]; then ./_build.sh && ./_deploy.sh; fi