X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/22b7aed769fed5e0bcc31479a65869437cb2d5dd..38c21de0ee17bb0eacd6cc8f0e1ed71cbee0b0c9:/.travis.yml diff --git a/.travis.yml b/.travis.yml index 25f7d8b4..dd973aec 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,15 @@ --- -sudo: required +os: linux dist: xenial language: python python: - "3.6" addons: postgresql: "9.6" + apt: + packages: + postgresql-server-dev-9.6 + postgresql-client-9.6 git: depth: 3 env: @@ -21,7 +25,7 @@ script: - cd $TRAVIS_BUILD_DIR/ - if [[ $TEST_SUITE == "tests" ]]; then phpcs --report-width=120 . ; fi - cd $TRAVIS_BUILD_DIR/test/php - - if [[ $TEST_SUITE == "tests" ]]; then /usr/bin/phpunit ./ ; fi + - if [[ $TEST_SUITE == "tests" ]]; then UNIT_TEST_DSN='pgsql:dbname=nominatim_unit_tests' /usr/bin/phpunit ./ ; fi - cd $TRAVIS_BUILD_DIR/test/bdd - # behave --format=progress3 api - if [[ $TEST_SUITE == "tests" ]]; then behave -DREMOVE_TEMPLATE=1 --format=progress3 db ; fi