2012-09-02 13:48:49 +02:00
|
|
|
language: cpp
|
|
|
|
|
2015-01-23 23:21:54 +01:00
|
|
|
sudo: false
|
|
|
|
|
2014-08-22 01:36:55 +02:00
|
|
|
# travis + ubuntugis with gdal and postggis leads to many potential dead-end conflicts
|
|
|
|
# the below is thanks to https://github.com/CartoDB/Windshaft/blob/d82fe08b32fc7907bbe907ab290f8a082215ae26/.travis.yml#L1
|
2012-09-02 13:48:49 +02:00
|
|
|
before_install:
|
2014-08-22 01:36:55 +02:00
|
|
|
- export PGUSER=postgres
|
2015-01-23 23:21:54 +01:00
|
|
|
#- sudo mv /etc/apt/sources.list.d/pgdg-source.list* /tmp
|
|
|
|
#- sudo apt-get -qq purge postgis* postgresql*
|
|
|
|
#- sudo apt-add-repository -y ppa:cartodb/postgresql-9.3
|
2014-10-02 19:32:16 +02:00
|
|
|
# enable to test against latest boost rather that v1.48
|
|
|
|
#- sudo add-apt-repository -y ppa:boost-latest/ppa
|
2015-01-23 23:21:54 +01:00
|
|
|
#- sudo rm -Rf /var/lib/postgresql /etc/postgresql
|
|
|
|
#- sudo apt-get update -qq
|
|
|
|
#- sudo apt-get install -q postgresql-9.3-postgis-2.1 postgresql-contrib-9.3
|
|
|
|
#- echo -e "local\tall\tall\ttrust\nhost\tall\tall\t127.0.0.1/32\ttrust\nhost\tall\tall\t::1/128\ttrust" |sudo tee /etc/postgresql/9.3/main/pg_hba.conf
|
|
|
|
#- sudo service postgresql restart
|
2014-08-22 01:36:55 +02:00
|
|
|
|
|
|
|
install:
|
2014-10-02 20:27:59 +02:00
|
|
|
# enable to test against boost ppa
|
2015-01-23 23:21:54 +01:00
|
|
|
#- sudo apt-get install -y ttf-wqy-microhei make valgrind python-nose
|
2014-08-22 01:36:55 +02:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- psql -U postgres -c 'create database template_postgis'
|
|
|
|
- psql -U postgres -c 'create extension postgis' -d template_postgis
|
2013-11-22 09:52:49 +01:00
|
|
|
|
2014-08-22 02:01:51 +02:00
|
|
|
script:
|
2015-01-23 23:04:32 +01:00
|
|
|
- source bootstrap.sh
|
2015-01-24 08:01:08 +01:00
|
|
|
- cat config.log
|
2015-01-24 07:57:45 +01:00
|
|
|
- JOBS=4 make
|
2014-10-21 07:43:17 +02:00
|
|
|
- git clone --depth=1 https://github.com/mapbox/mapnik-test-data tests/data/mapnik-test-data
|
2014-10-01 04:19:25 +02:00
|
|
|
- make test
|
2015-01-23 23:21:54 +01:00
|
|
|
#- source localize.sh && make grind
|
2015-01-23 23:04:32 +01:00
|
|
|
- make bench
|