2012-09-02 13:48:49 +02:00
|
|
|
language: cpp
|
|
|
|
|
2015-01-23 14:21:54 -08:00
|
|
|
sudo: false
|
|
|
|
|
2013-08-22 20:30:36 -07:00
|
|
|
compiler:
|
2014-06-04 10:51:07 -07:00
|
|
|
- clang
|
2014-10-21 16:54:53 -07:00
|
|
|
- gcc
|
2014-03-18 15:00:24 -07:00
|
|
|
|
2014-08-21 16:36:55 -07: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-21 16:36:55 -07:00
|
|
|
- export PGUSER=postgres
|
2015-01-23 14:21:54 -08: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 10:32:16 -07:00
|
|
|
# enable to test against latest boost rather that v1.48
|
|
|
|
#- sudo add-apt-repository -y ppa:boost-latest/ppa
|
2015-01-23 14:21:54 -08: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-21 16:36:55 -07:00
|
|
|
|
|
|
|
install:
|
2014-10-02 11:27:59 -07:00
|
|
|
# enable to test against boost ppa
|
2015-01-23 14:21:54 -08:00
|
|
|
#- sudo apt-get install -y ttf-wqy-microhei make valgrind python-nose
|
2014-08-21 16:36:55 -07:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- psql -U postgres -c 'create database template_postgis'
|
|
|
|
- psql -U postgres -c 'create extension postgis' -d template_postgis
|
2013-11-22 00:52:49 -08:00
|
|
|
|
2014-08-21 17:01:51 -07:00
|
|
|
script:
|
2015-01-23 14:04:32 -08:00
|
|
|
- source bootstrap.sh
|
2015-01-23 22:57:45 -08:00
|
|
|
- JOBS=4 make
|
2014-10-20 22:43:17 -07:00
|
|
|
- git clone --depth=1 https://github.com/mapbox/mapnik-test-data tests/data/mapnik-test-data
|
2014-09-30 19:19:25 -07:00
|
|
|
- make test
|
2015-01-23 14:21:54 -08:00
|
|
|
#- source localize.sh && make grind
|
2015-01-23 14:04:32 -08:00
|
|
|
- make bench
|