Browse Source

fixing Travis due to new sf dep

tags/v0.7.0
boB Rudis 3 years ago
parent
commit
e9357d4b7d
No known key found for this signature in database GPG Key ID: 2A514A4997464560
2 changed files with 42 additions and 18 deletions
  1. +40
    -17
      .travis.yml
  2. +2
    -1
      DESCRIPTION

+ 40
- 17
.travis.yml View File

@ -1,29 +1,52 @@
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
language: r
language: R
sudo: required
cache: packages
apt_packages:
- libv8-dev
dist: trusty
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)
# activate liblwgeom by:
- sudo ldconfig
# 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;"
addons:
postgresql: "9.6"
r:
- oldrel
- release
- devel
<<<<<<< HEAD
notifications:
email:
- bob@rud.is
irc:
channels:
- "irc.rud.is#builds"
nick: travisci
after_success:
- Rscript -e 'covr::codecov()'
=======
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()'
>>>>>>> c0ce51942c79090d1a9ae3fb95f7e2b292d9302e

+ 2
- 1
DESCRIPTION View File

@ -33,5 +33,6 @@ Imports:
jsonlite,
stats,
utils,
sf
sf,
units (>= 0.4-6)
RoxygenNote: 6.0.1

Loading…
Cancel
Save