forked from DataShades/ckanext-datarequests
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request conwetlab#54 from qld-gov-au/upstream-develop
Merge upstream changes
- Loading branch information
Showing
9 changed files
with
909 additions
and
99 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,27 @@ | ||
sudo: required | ||
language: python | ||
group: deprecated-2017Q4 | ||
python: | ||
- "2.7" | ||
env: | ||
- CKANVERSION=2.5.6 POSTGISVERSION=2 | ||
- CKANVERSION=2.6.3 POSTGISVERSION=2 | ||
- CKANVERSION=2.7.0 POSTGISVERSION=2 | ||
- CKANVERSION=2.8.3 POSTGISVERSION=2 | ||
services: | ||
- redis-server | ||
- postgresql | ||
- xvfb | ||
addons: | ||
firefox: "46.0" | ||
install: | ||
- bash bin/travis-build.bash | ||
before_script: | ||
- "export DISPLAY=:99.0" | ||
- sleep 3 # give xvfb some time to start | ||
script: | ||
- sh bin/travis-run.sh | ||
after_success: coveralls | ||
branches: | ||
only: | ||
- develop |
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,43 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
echo "This is travis-build.bash..." | ||
|
||
echo "Installing the packages that CKAN requires..." | ||
sudo apt-get update -qq | ||
sudo apt-get install solr-jetty | ||
|
||
echo "Installing CKAN and its Python dependencies..." | ||
git clone https://github.com/ckan/ckan | ||
cd ckan | ||
git checkout ckan-$CKANVERSION | ||
python setup.py develop | ||
pip install -r requirements.txt | ||
pip install -r dev-requirements.txt | ||
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/jetty8 | ||
sudo cp ckan/ckan/config/solr/schema.xml /etc/solr/conf/schema.xml | ||
sudo service jetty8 restart | ||
|
||
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 USER datastore_default WITH PASSWORD 'pass';" | ||
sudo -u postgres psql -c "CREATE DATABASE ckan_test WITH OWNER ckan_default;" | ||
sudo -u postgres psql -c "CREATE DATABASE datastore_test WITH OWNER ckan_default;" | ||
|
||
|
||
echo "Initialising the database..." | ||
cd ckan | ||
paster db init -c test-core.ini | ||
cd - | ||
|
||
echo "Installing ckanext-datarequests and its requirements..." | ||
python setup.py develop | ||
|
||
echo "travis-build.bash is done." |
Oops, something went wrong.