From cbd65a63efe6e5943d87fa82e0a1176f11d8b470 Mon Sep 17 00:00:00 2001 From: David Read Date: Wed, 27 Apr 2016 15:46:33 +0000 Subject: [PATCH] Single core solr for travis tests. --- bin/travis-build.bash | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/travis-build.bash b/bin/travis-build.bash index 5eeaaf1..da2e5ae 100644 --- a/bin/travis-build.bash +++ b/bin/travis-build.bash @@ -20,6 +20,10 @@ pip install -r dev-requirements.txt --allow-all-external cd - echo "Setting up Solr..." +# solr is multicore for tests on ckan master now, but it's easier to run tests +# on Travis single-core still. +# see https://github.com/ckan/ckan/issues/2972 +sed -i -e 's/solr_url.*/solr_url = http:\/\/127.0.0.1:8983\/solr/' ckan/test-core.ini printf "NO_START=0\nJETTY_HOST=127.0.0.1\nJETTY_PORT=8983\nJAVA_HOME=$JAVA_HOME" | sudo tee /etc/default/jetty sudo cp ckan/ckan/config/solr/schema.xml /etc/solr/conf/schema.xml sudo service jetty restart