]> git.openstreetmap.org Git - nominatim.git/blob - .travis.yml
place node address parts must be in lower rank area
[nominatim.git] / .travis.yml
1 ---
2 sudo: required
3 dist: xenial
4 language: python
5 python:
6   - "3.6"
7 addons:
8   postgresql: "9.6"
9   apt:
10     packages:
11       postgresql-server-dev-9.6
12       postgresql-client-9.6
13 git:
14   depth: 3
15 env:
16   - TEST_SUITE=tests
17   - TEST_SUITE=monaco
18 before_install:
19   - phpenv global 7.1
20 install:
21   - vagrant/install-on-travis-ci.sh
22 before_script:
23   - psql -U postgres -c "create extension postgis"
24 script:
25   - cd $TRAVIS_BUILD_DIR/
26   - if [[ $TEST_SUITE == "tests" ]]; then phpcs --report-width=120 . ; fi
27   - cd $TRAVIS_BUILD_DIR/test/php
28   - if [[ $TEST_SUITE == "tests" ]]; then /usr/bin/phpunit ./ ; fi
29   - cd $TRAVIS_BUILD_DIR/test/bdd
30   - # behave --format=progress3 api
31   - if [[ $TEST_SUITE == "tests" ]]; then behave -DREMOVE_TEMPLATE=1 --format=progress3 db ; fi
32   - if [[ $TEST_SUITE == "tests" ]]; then behave --format=progress3 osm2pgsql ; fi
33   - cd $TRAVIS_BUILD_DIR/build
34   - if [[ $TEST_SUITE == "monaco" ]]; then wget --no-verbose --output-document=../data/monaco.osm.pbf http://download.geofabrik.de/europe/monaco-latest.osm.pbf; fi
35   - 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
36   - if [[ $TEST_SUITE == "monaco" ]]; then /usr/bin/env php ./utils/specialphrases.php --wiki-import | psql -d test_api_nominatim >/dev/null; fi
37   - if [[ $TEST_SUITE == "monaco" ]]; then /usr/bin/env php ./utils/check_import_finished.php; fi
38 notifications:
39   email: false