Skip to content

Commit

Permalink
Travis: more movement
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Apr 17, 2013
1 parent 2670dad commit 115c0e2
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions bin/travis-build
@@ -1,5 +1,11 @@
#!/bin/sh

PYTHON_VERSION=`python -c "import sys;v = sys.version_info; print '%s.%s' % (v[0], v[1])"`

echo Python: $PYTHON_VERSION
echo Postgres: $PGVERSION
echo Branch: $TRAVIS_BRANCH

# Drop Travis' postgres cluster if we're building using a different pg version
TRAVIS_PGVERSION='9.1'
if [ $PGVERSION != $TRAVIS_PGVERSION ]
Expand All @@ -12,17 +18,14 @@ fi
# Install postgres and solr
# We need this ppa so we can install postgres-8.4
sudo add-apt-repository -yy ppa:pitti/postgresql
sudo apt-get update -qq
sudo apt-get install -qq solr-jetty postgresql-$PGVERSION
sudo apt-get -qq update
sudo apt-get -qq install solr-jetty postgresql-$PGVERSION

# Don't require a password to access DB
#sudo sed -i -e 's/ident/trust/g' /etc/postgresql/$PGVERSION/main/pg_hba.conf

sudo service postgresql reload

pip install -r pip-requirements.txt --use-mirrors
pip install -r pip-requirements-test.txt --use-mirrors

# make users
sudo -u postgres psql -c "CREATE USER ckanuser WITH PASSWORD 'pass';"
sudo -u postgres psql -c "CREATE USER readonlyuser WITH PASSWORD 'pass';"
Expand All @@ -33,6 +36,10 @@ sudo -u postgres psql -c 'CREATE DATABASE ckan_test_datastore WITH OWNER ckanuse
# Check postgres version
psql -U ckanuser ckan_test -c 'SELECT version();'

exit 0
pip install -r pip-requirements.txt --use-mirrors
pip install -r pip-requirements-test.txt --use-mirrors

python setup.py develop

### Configure CKAN's configuration file
Expand Down

0 comments on commit 115c0e2

Please sign in to comment.