]> git.openstreetmap.org Git - nominatim.git/blob - .travis.yml
clean up docs for lookup call
[nominatim.git] / .travis.yml
1 ---
2 sudo: required
3 dist: trusty
4 language: python
5 python:
6   - "3.6"
7 addons:
8   postgresql: "9.6"
9 git:
10   depth: 3
11 env:
12   - TEST_SUITE=tests
13   - TEST_SUITE=monaco
14 install:
15   - vagrant/install-on-travis-ci.sh
16 before_script:
17   - psql -U postgres -c "create extension postgis"
18 script:
19   - cd $TRAVIS_BUILD_DIR/
20   - if [[ $TEST_SUITE == "tests" ]]; then phpcs --report-width=120 . ; fi
21   - cd $TRAVIS_BUILD_DIR/test/php
22   - if [[ $TEST_SUITE == "tests" ]]; then phpunit ./ ; fi
23   - cd $TRAVIS_BUILD_DIR/test/bdd
24   - # behave --format=progress3 api
25   - if [[ $TEST_SUITE == "tests" ]]; then behave --format=progress3 db ; fi
26   - if [[ $TEST_SUITE == "tests" ]]; then behave --format=progress3 osm2pgsql ; fi
27   - cd $TRAVIS_BUILD_DIR/build
28   - if [[ $TEST_SUITE == "monaco" ]]; then wget --no-verbose --output-document=../data/monaco.osm.pbf http://download.geofabrik.de/europe/monaco-latest.osm.pbf; fi
29   - if [[ $TEST_SUITE == "monaco" ]]; then /usr/bin/env php ./utils/setup.php --osm-file ../data/monaco.osm.pbf --osm2pgsql-cache 1000 --all 2>&1 | grep -v 'ETA (seconds)'; fi
30   - if [[ $TEST_SUITE == "monaco" ]]; then /usr/bin/env php ./utils/specialphrases.php --wiki-import | psql -d test_api_nominatim >/dev/null; fi
31 notifications:
32   email: false