-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
69 lines (54 loc) · 2.17 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
language: r
sudo: required
dist: trusty
warnings_are_errors: true
r:
- release
- devel
r_build_args: --no-build-vignettes
os:
- linux
- osx
matrix:
exclude:
- os: osx
r: devel
env:
global:
- _R_CHECK_FORCE_SUGGESTS_=FALSE
apt_packages:
- curl
- qpdf
- coinor-libcgl-dev
- coinor-libclp-dev
- coinor-libcoinutils-dev
- coinor-libosi-dev
- coinor-libsymphony-dev
- coinor-libsymphony-doc
- coinor-libsymphony3
before_script:
- Rscript -e "source('http://bioconductor.org/biocLite.R');biocLite('lpsymphony')"
before_install:
- echo "TRAVIS_OS_NAME = $TRAVIS_OS_NAME"
- echo "options(repos = c(CRAN='http://cran.rstudio.com'))" > ~/.Rprofile
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get --yes --force-yes update -qq; fi;
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -y; fi;
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable; fi;
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update; fi;
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install libudunits2-dev libgdal-dev libgeos-dev libproj-dev; fi;
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then Rscript -e "install.packages(c('sp', 'devtools'))"; fi;
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install Caskroom/cask/xquartz; fi;
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install ghostscript; fi;
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then Rscript -e "setRepositories(ind=1:2);install.packages(c('rgdal','rgeos','RandomFieldsUtils','RandomFields'))"; fi;
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then Rscript -e "setRepositories(ind=1:2);install.packages('digest', type = 'source')"; fi;
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then sudo tlmgr update --self; fi;
install:
- R -e "install.packages('remotes'); suppressWarnings(remotes::install_deps(dependencies = TRUE))"
- R -e "install.packages(c('covr', 'rmarkdown', 'testthat'))"
after_success:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then Rscript -e 'covr::codecov()'; fi;
notifications:
email:
on_success: change
on_failure: change