Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into 262-improve-helper-imports
- Loading branch information
Showing
328 changed files
with
51,503 additions
and
12,084 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
language: python | ||
python: | ||
- "2.7" | ||
before_install: | ||
- sudo apt-get update -qq | ||
- sudo apt-get install -qq solr-jetty | ||
install: | ||
- "pip install -r pip-requirements.txt --use-mirrors" | ||
- "pip install -r pip-requirements-test.txt --use-mirrors" | ||
before_script: | ||
- psql -c 'CREATE DATABASE ckantest;' -U postgres | ||
- psql -c 'CREATE DATABASE datastore;' -U postgres | ||
- psql -c 'CREATE USER readonlyuser;' -U postgres | ||
- python setup.py develop | ||
- paster make-config ckan development.ini --no-interactive | ||
- sed -i -e 's/.*solr_url.*/solr_url = http:\/\/127.0.0.1:8983\/solr/' development.ini | ||
- sed -i -e 's/.*ckan\.site_id.*/ckan.site_id = travis_ci/' development.ini | ||
- sed -i -e 's/^sqlalchemy.url.*/sqlalchemy.url = postgresql:\/\/postgres@localhost\/ckantest/' development.ini | ||
- sed -i -e 's/.*datastore.write_url.*/ckan.datastore.write_url = postgresql:\/\/postgres@localhost\/datastore/' development.ini | ||
- sed -i -e 's/.*datastore.read_url.*/ckan.datastore.read_url = postgresql:\/\/readonlyuser@localhost\/datastore/' development.ini | ||
- cat development.ini | ||
- echo -e "NO_START=0\nJETTY_HOST=127.0.0.1\nJETTY_PORT=8983\nJAVA_HOME=$JAVA_HOME" | sudo tee /etc/default/jetty | ||
- sudo cp ckan/config/solr/schema-2.0.xml /etc/solr/conf/schema.xml | ||
- sudo service jetty restart | ||
- paster --plugin=ckan db init | ||
- sed -i -e 's/ -W//g' ckanext/datastore/bin/datastore_setup.py | ||
- paster datastore set-permissions postgres | ||
script: "nosetests --ckan ckan && nosetests --ckan --with-pylons=test-core.ini --nologcapture --cover-package=ckanext.datastore ckanext/datastore/tests -x" | ||
notifications: | ||
irc: | ||
channels: | ||
- "irc.freenode.org#ckan" | ||
template: | ||
- "%{repository} (%{branch} - %{commit}) [%{build_url}] %{author}: %{message}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.