-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
53 lines (45 loc) · 1.1 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
language: r
r:
- release
deploy.skip_cleanup: true
sudo: required
dist: trusty
cache:
- packages
- ccache
latex: false
addons:
apt:
sources:
- sourceline: 'ppa:opencpu/jq'
- sourceline: 'ppa:ubuntugis/ubuntugis-unstable'
packages:
- libgdal-dev
- libgeos-dev
- libproj-dev
- libudunits2-dev
- libv8-dev
- libjq-dev
- libprotobuf-dev
- protobuf-compiler
- libssl-dev
- libcairo2-dev
- libnetcdf-dev
- netcdf-bin
- libjson-c-dev
before_install:
- R -e 'install.packages("rgdal", repos="http://R-Forge.R-project.org")'
- R -q -e 'install.packages("remotes"); remotes::install_github("ropenscilabs/tic"); tic::prepare_all_stages()'
install: R -q -e 'tic::install()'
script: R -q -e 'tic::script()'
before_deploy: R -q -e 'tic::before_deploy()'
deploy:
provider: script
script: R -q -e 'tic::deploy()'
on:
branch: master
condition:
- $TRAVIS_PULL_REQUEST = false
- $TRAVIS_EVENT_TYPE != cron
- $TRAVIS_R_VERSION_STRING = release
after_success: R -q -e 'tic::after_success()'