install deps first

This commit is contained in:
Friedrich Lindenberg 2016-02-14 11:09:05 +01:00
parent 771509a05b
commit 0dbb926dec

View File

@ -11,6 +11,7 @@ env:
install: install:
- pip install -U pip wheel - pip install -U pip wheel
- pip install flake8 psycopg2 nose - pip install flake8 psycopg2 nose
- pip install -e .
before_script: before_script:
- sh -c "if [ '$DATABASE_URL' = 'postgresql+psycopg2://postgres@127.0.0.1/dataset' ]; then psql -c 'DROP DATABASE IF EXISTS dataset;' -U postgres; fi" - sh -c "if [ '$DATABASE_URL' = 'postgresql+psycopg2://postgres@127.0.0.1/dataset' ]; then psql -c 'DROP DATABASE IF EXISTS dataset;' -U postgres; fi"
- sh -c "if [ '$DATABASE_URL' = 'postgresql+psycopg2://postgres@127.0.0.1/dataset' ]; then psql -c 'create database dataset;' -U postgres; fi" - sh -c "if [ '$DATABASE_URL' = 'postgresql+psycopg2://postgres@127.0.0.1/dataset' ]; then psql -c 'create database dataset;' -U postgres; fi"