travis-ci setup, some tests fails

This commit is contained in:
Marc Tobias Metten
2016-06-21 23:42:36 +02:00
parent 665de339e5
commit 77ca079688
2 changed files with 85 additions and 0 deletions

22
.travis.yml Normal file
View File

@@ -0,0 +1,22 @@
---
language:
- 'python'
sudo: required
dist: trusty
before_install:
- git submodule update --init --recursive
install:
- vagrant/install-on-travis-ci.sh
before_script:
- cd $TRAVIS_BUILD_DIR/build
- wget --no-verbose --output-document=../data/monaco.osm.pbf http://download.geofabrik.de/europe/monaco-latest.osm.pbf
- ./utils/setup.php --osm-file ../data/monaco.osm.pbf --osm2pgsql-cache 1000 --all 2>&1 | grep -v 'ETA (seconds)'
- ./utils/specialphrases.php --countries > ../data/specialphrases_countries.sql
- psql -d nominatim -f ../data/specialphrases_countries.sql
script:
- cd $TRAVIS_BUILD_DIR/tests-php
- phpunit ./
- cd $TRAVIS_BUILD_DIR/tests
- lettuce --verbosity=2 features/api
- lettuce --verbosity=2 features/db
- lettuce --verbosity=2 features/osm2pgsql