Skip to content

Commit

Permalink
[#2972] Overwrite path to solr core for Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
brew committed May 24, 2016
1 parent 7363a40 commit c38b78d
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 c38b78d

Please sign in to comment.