# This is the config file for building TileStache and running the test suite
# with Travis-ci.org

language: python

python:
  - "2.7"

addons:
  postgresql: "9.3"
  apt:
    packages:
      - postgresql-9.3-postgis-2.2

virtualenv:
  system_site_packages: true

services:
  - memcached

before_install:
  - 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


script:
  - nosetests -v --with-coverage --cover-package TileStache

notifications:
  email:
    recipients:
      - mike-travisci@teczno.com



# 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 -yq --no-install-suggests --no-install-recommends --force-yes install postgresql-9.4 postgis postgresql-9.4-postgis-2.2
  - 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


script:
  - nosetests -v --with-coverage --cover-package TileStache

notifications:
  email:
    recipients:
      - mike-travisci@teczno.com



Use postgres 9.4 with postgis 2.2
Use postgres 9.4 with postgis 2.2
