]> git.openstreetmap.org Git - nominatim.git/blob - .travis.yml
Merge pull request #1532 from eyusupov/use-extradir
[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 git:
10   depth: 3
11 env:
12   - TEST_SUITE=tests
13   - TEST_SUITE=monaco
14 before_install:
15   - phpenv global 7.1
16 install:
17   - vagrant/install-on-travis-ci.sh
18 before_script:
19   - psql -U postgres -c "create extension postgis"
20 script:
21   - cd $TRAVIS_BUILD_DIR/
22   - if [[ $TEST_SUITE == "tests" ]]; then phpcs --report-width=120 . ; fi
23   - cd $TRAVIS_BUILD_DIR/test/php
24   - if [[ $TEST_SUITE == "tests" ]]; then /usr/bin/phpunit ./ ; fi
25   - cd $TRAVIS_BUILD_DIR/test/bdd
26   - # behave --format=progress3 api
27   - if [[ $TEST_SUITE == "tests" ]]; then behave -DREMOVE_TEMPLATE=1 --format=progress3 db ; fi
28   - if [[ $TEST_SUITE == "tests" ]]; then behave --format=progress3 osm2pgsql ; fi
29   - cd $TRAVIS_BUILD_DIR/build
30   - if [[ $TEST_SUITE == "monaco" ]]; then wget --no-verbose --output-document=../data/monaco.osm.pbf http://download.geofabrik.de/europe/monaco-latest.osm.pbf; fi
31   - 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
32   - if [[ $TEST_SUITE == "monaco" ]]; then /usr/bin/env php ./utils/specialphrases.php --wiki-import | psql -d test_api_nominatim >/dev/null; fi
33 notifications:
34   email: false