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