forked from jbaileyh/geogrid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (41 loc) · 1.64 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
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
language: R
# sudo: false
sudo: required
# cache: packages
dist: trusty
addons:
postgresql: "9.6"
before_install:
- sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable --yes
- sudo apt-get --yes --force-yes update -qq
# install tmap dependencies
- sudo apt-get install --yes libprotobuf-dev protobuf-compiler libv8-3.14-dev
# install tmap dependencies; for 16.04 libjq-dev this ppa is needed:
- sudo add-apt-repository -y ppa:opencpu/jq
- sudo apt-get --yes --force-yes update -qq
- sudo apt-get install libjq-dev
# units/udunits2 dependency:
- sudo apt-get install --yes libudunits2-dev
# sf dependencies:
- sudo apt-get install --yes libproj-dev libgeos-dev libgdal-dev
# postgis source compile dependencies:
- sudo apt-get --yes install libjson-c-dev postgresql-server-dev-9.6
# # install postgis from source:
# - wget http://download.osgeo.org/postgis/source/postgis-2.3.2.tar.gz
# - (mv postgis* /tmp; cd /tmp; tar xzf postgis-2.3.2.tar.gz)
# - (cd /tmp/postgis-2.3.2 ; ./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;"
warnings_are_errors: true
after_success:
# - dropdb postgis
# - createdb postgis
# - psql -d postgis -c "CREATE EXTENSION postgis;"
# - psql -d postgis -c "GRANT CREATE ON DATABASE postgis TO travis"
- Rscript -e 'covr::codecov()'