forked from r-tmap/tmap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
60 lines (54 loc) · 1.57 KB
/
.travis.yml
File metadata and controls
60 lines (54 loc) · 1.57 KB
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
language: r
r:
- release
sudo: required
dist: trusty
cache:
- packages
- ccache
latex: false
addons:
postgresql: "9.6"
apt:
sources:
- sourceline: 'ppa:opencpu/jq'
- sourceline: 'ppa:ubuntugis/ubuntugis-unstable'
packages:
- libprotobuf-dev
- protobuf-compiler
- libv8-dev
- libjq-dev
- libudunits2-dev
- libproj-dev
- libgeos-dev
- libgdal-dev
- libjson-c-dev
- postgresql-server-dev-9.6
before_install:
# install postgis from source (required for lwgeom installation):
- wget http://download.osgeo.org/postgis/source/postgis-2.4.4.tar.gz
- (mv postgis* /tmp; cd /tmp; tar xzf postgis-2.4.4.tar.gz)
- (cd /tmp/postgis-2.4.4 ; ./configure; make; sudo make install)
# create postgis databases:
- sudo service postgresql restart
- createdb postgis
- psql -d postgis -c "CREATE EXTENSION postgis;"
- psql -d postgis -c "GRANT CREATE ON DATABASE postgis TO travis"
- createdb empty
- psql -d empty -c "CREATE EXTENSION postgis;"
- R -q -e 'install.packages("remotes"); remotes::install_github("ropenscilabs/tic"); tic::prepare_all_stages(); tic::before_install()'
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()'
- R -q -e 'covr::codecov(quiet = FALSE)'