From af81c6aa9496e9dbdcc3fb96c9f78c73dad934bc Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Sun, 4 Jun 2017 11:35:11 +0200 Subject: [PATCH] add special terms import to travis testing and fixup libs --- .travis.yml | 1 + Vagrantfile | 11 ++++++++++- vagrant/install-on-travis-ci.sh | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 68d5be4e..5efc9f08 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,6 +19,7 @@ script: - cd $TRAVIS_BUILD_DIR/build - if [[ $TEST_SUITE == "monaco" ]]; then wget --no-verbose --output-document=../data/monaco.osm.pbf http://download.geofabrik.de/europe/monaco-latest.osm.pbf; fi - if [[ $TEST_SUITE == "monaco" ]]; then ./utils/setup.php --osm-file ../data/monaco.osm.pbf --osm2pgsql-cache 1000 --all 2>&1 | grep -v 'ETA (seconds)'; fi + - if [[ $TEST_SUITE == "monaco" ]]; then ./utils/specialphrases.php --wiki-import | psql -d test_api_nominatim >/dev/null; fi - cd $TRAVIS_BUILD_DIR/test/php - if [[ $TEST_SUITE == "tests" ]]; then phpunit ./ ; fi - if [[ $TEST_SUITE == "tests" ]]; then phpcs --report-width=120 */**.php ; fi diff --git a/Vagrantfile b/Vagrantfile index 15d66e9e..b9d618e2 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -23,7 +23,16 @@ Vagrant.configure("2") do |config| end end - config.vm.define "centos" do |sub| + config.vm.define "travis" do |sub| + sub.vm.box = "bento/ubuntu-14.04" + sub.vm.provision :shell do |s| + s.path = "vagrant/install-on-travis-ci.sh" + s.privileged = false + s.args = [checkout] + end + end + + config.vm.define "centos" do |sub| sub.vm.box = "bento/centos-7.2" sub.vm.provision :shell do |s| s.path = "vagrant/install-on-centos-7.sh" diff --git a/vagrant/install-on-travis-ci.sh b/vagrant/install-on-travis-ci.sh index b2d9a326..ec0a92da 100755 --- a/vagrant/install-on-travis-ci.sh +++ b/vagrant/install-on-travis-ci.sh @@ -16,7 +16,7 @@ sudo apt-get install -y -qq libboost-dev libboost-system-dev \ libboost-filesystem-dev libexpat1-dev zlib1g-dev libxml2-dev\ libbz2-dev libpq-dev libgeos-c1 libgeos++-dev libproj-dev \ postgresql-server-dev-9.6 postgresql-9.6-postgis-2.3 postgresql-contrib-9.6 \ - apache2 php5 php5-pgsql php-pear php-db php-intl + apache2 php5 php5-pgsql php-pear php-db php5-intl sudo apt-get install -y -qq python3-dev python3-pip python3-psycopg2 phpunit php5-cgi -- 2.39.5