Skip to content

Commit

Permalink
Merge branch 'travis-solr-fixes'
Browse files Browse the repository at this point in the history
  • Loading branch information
brew committed Apr 21, 2016
2 parents a840584 + 3421fd7 commit e482cc4
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
@@ -1,11 +1,11 @@
language: python
python:
- "2.6"
- "2.7"
env:
- PGVERSION=9.1 CKANVERSION=master
- PGVERSION=9.1 CKANVERSION=2.3
- PGVERSION=9.1 CKANVERSION=2.4.0
- PGVERSION=9.1 CKAN_BRANCH=master
- PGVERSION=9.1 CKAN_BRANCH=release-v2.3-latest
- PGVERSION=9.1 CKAN_BRANCH=release-v2.4-latest
- PGVERSION=9.1 CKAN_BRANCH=release-v2.5-latest
install:
- bash bin/travis-build.bash
- pip install coveralls -U
Expand Down
12 changes: 2 additions & 10 deletions bin/travis-build.bash
Expand Up @@ -10,15 +10,7 @@ sudo apt-get install postgresql-$PGVERSION solr-jetty libcommons-fileupload-java
echo "Installing CKAN and its Python dependencies..."
git clone https://github.com/ckan/ckan
cd ckan
if [ $CKANVERSION == '2.3' ]
then
git checkout release-v2.3
elif [ $CKANVERSION == '2.4.0' ]
then
git checkout release-v2.4.0
else
git checkout master
fi
git checkout $CKAN_BRANCH
python setup.py develop
pip install -r requirements.txt --allow-all-external
pip install -r dev-requirements.txt --allow-all-external
Expand All @@ -39,6 +31,6 @@ pip install -r dev-requirements.txt

echo "Moving test.ini into a subdir..."
mkdir subdir
mv test.ini subdir
mv test-travis.ini subdir

echo "travis-build.bash is done."
2 changes: 1 addition & 1 deletion bin/travis-run.sh
Expand Up @@ -3,4 +3,4 @@
echo "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
nosetests --ckan --nologcapture --with-pylons=subdir/test.ini --with-coverage --cover-package=ckanext.showcase --cover-inclusive --cover-erase --cover-tests
nosetests --ckan --nologcapture --with-pylons=subdir/test-travis.ini --with-coverage --cover-package=ckanext.showcase --cover-inclusive --cover-erase --cover-tests
20 changes: 20 additions & 0 deletions test-travis.ini
@@ -0,0 +1,20 @@
[DEFAULT]
debug = false
smtp_server = localhost
error_email_from = paste@localhost

[server:main]
use = egg:Paste#http
host = 0.0.0.0
port = 5000

[app:main]
use = config:../ckan/test-core.ini

# Insert any custom config settings to be used when running your extension's
# tests here.

ckan.legacy_templates = false
ckan.plugins = showcase

solr_url = http://127.0.0.1:8983/solr
2 changes: 2 additions & 0 deletions test.ini
Expand Up @@ -17,6 +17,8 @@ use = config:../ckan/test-core.ini
ckan.legacy_templates = false
ckan.plugins = showcase

solr_url = http://127.0.0.1:8983/solr/ckan

# Logging configuration
[loggers]
keys = root, ckan, sqlalchemy
Expand Down

0 comments on commit e482cc4

Please sign in to comment.