forked from tilezen/TileStache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (30 loc) · 1.18 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
# This is the config file for building TileStache and running the test suite
# with Travis-ci.org
language: python
python:
- "2.7"
virtualenv:
system_site_packages: true
services:
- memcached
before_install:
# - sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable
- sudo apt-get update -qq
- sudo apt-get install -qq gdal-bin memcached python-pip
- sudo apt-get install -qq python-nose python-imaging python-memcache python-gdal
- sudo apt-get install -qq python-coverage python-werkzeug python-psycopg2
- ogrinfo --version
- ogrinfo --formats
before_script:
- sudo -u postgres psql -c "drop database if exists test_tilestache"
- sudo -u postgres psql -c "create database test_tilestache"
- sudo -u postgres psql -c "create extension postgis" -d test_tilestache
- sudo -u postgres ogr2ogr -nlt MULTIPOLYGON -f "PostgreSQL" PG:"user=postgres dbname=test_tilestache" ./examples/sample_data/world_merc.shp
install:
- sudo pip install -r requirements.txt --use-mirrors --allow-external ModestMaps --allow-unverified ModestMaps
script:
- nosetests -v --with-coverage --cover-package TileStache
notifications:
email:
recipients: