Skip to content

Commit

Permalink
Merge pull request #3050 from ckan/2972-solr-travis
Browse files Browse the repository at this point in the history
Overwrite path to solr core for Travis in paster templates
  • Loading branch information
wardi committed May 25, 2016
2 parents 46be8f6 + c38b78d commit dc3bb9e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ckan/pastertemplates/template/bin/travis-build.bash_tmpl
Expand Up @@ -22,6 +22,11 @@ echo "Creating the PostgreSQL user and database..."
sudo -u postgres psql -c "CREATE USER ckan_default WITH PASSWORD 'pass';"
sudo -u postgres psql -c 'CREATE DATABASE ckan_test WITH OWNER ckan_default;'

echo "SOLR config..."
# Solr is multicore for tests on ckan master, but it's easier to run tests on
# Travis single-core. 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

echo "Initialising the database..."
cd ckan
paster db init -c test-core.ini
Expand Down

0 comments on commit dc3bb9e

Please sign in to comment.