/
.travis.yml
48 lines (37 loc) · 1.15 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
language: python
python:
- 2.7
services:
- postgresql
install:
# Add PPAs for GEOS 3.3.x and PostGIS 2.x
- sudo apt-add-repository -y ppa:sharpie/for-science
- sudo apt-add-repository -y ppa:sharpie/postgis-nightly
- sudo apt-get update
# Install PostGIS
- sudo apt-get install postgresql-9.1-postgis postgresql-contrib-9.1 -q
# Install SkyLines Python dependencies
- pip install -e .
# Install testing dependencies
- pip install -r test-requirements.txt
before_script:
# Create the testing database
- psql -U postgres -c 'CREATE DATABASE skylines_test;'
# Install PostGIS extension into the database
- psql -U postgres -d skylines_test -c 'CREATE EXTENSION postgis;'
- psql -U postgres -d skylines_test -f /usr/share/postgresql/9.1/contrib/postgis-2.1/legacy_minimal.sql
# Install fuzzystrmatch extension into the database
- psql -U postgres -d skylines_test -c 'CREATE EXTENSION fuzzystrmatch;'
script:
# Run the test suite
- nosetests
notifications:
email:
on_failure: change
irc:
channels:
- "irc.freenode.org#skylines"
on_success: change
on_failure: always
use_notice: true
skip_join: true