forked from TileStache/TileStache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (27 loc) · 1.14 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
# 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
before_install:
- sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable
- sudo apt-get update -qq
- sudo apt-get install -qq postgis gdal-bin libgdal-dev libgdal1 libgdal1-dev libpq-dev 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
- 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
script:
- nosetests -v --with-coverage --cover-package TileStache
notifications:
email:
recipients:
- mike-travisci@teczno.com