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