Skip to content

Commit

Permalink
Updated Travis CI configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Julius O committed Sep 19, 2016
1 parent c911dcb commit c4100b1
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
dist: trusty
language: python

python:
- '2.7'

services:
- postgresql

python:
- '2.7'

addons:
postgresql: '9.4'
apt:
packages:
- postgresql-9.4-postgis-2.2

env:
- GEOKEY='>=1.0,<1.1' DJANGO='>=1.8,<1.9'
Expand All @@ -19,17 +23,19 @@ virtualenv:
system_site_packages: true

install:
- sudo rm /etc/apt/sources.list.d/ubuntugis-stable-source.list
- sudo apt-get update -y
- sudo apt-get install python-gdal gdal-bin binutils
- sudo add-apt-repository ppa:ubuntugis/ppa -y
- sudo -E apt-get -yq update &>> ~/apt-get-update.log
- sudo apt-get install binutils libav-tools
- sudo apt-get -yq install libgdal1-dev gdal-bin python-gdal
- gdal-config --version
- export C_INCLUDE_PATH=/usr/include/gdal
- export CPLUS_INCLUDE_PATH=/usr/include/gdal
- pip install --upgrade pip

before_script:
- psql template1 postgres -c 'create extension hstore;'
- psql -c 'create database geokey;' -U postgres
- psql -U postgres -d geokey -c 'create extension postgis;'
- pip install --upgrade pip
- pip install geokey$GEOKEY
- pip install django$DJANGO
- python -c "import django; print('DJANGO %s ' % django.get_version())"
Expand Down

0 comments on commit c4100b1

Please sign in to comment.