Even better in the syntaxness.

This commit is contained in:
Friedrich Lindenberg 2014-02-12 13:58:04 +01:00
parent 58645a5d66
commit bbaa90851e

View File

@ -9,7 +9,7 @@ env:
- DATABASE_URL=postgresql+psycopg2://postgres@127.0.0.1/dataset
- DATABASE_URL=mysql+mysqlconnector://travis@127.0.0.1/dataset?charset=utf8
install:
- pip install --allow-external flake8 psycopg2 mysql-connector-python
- pip install --allow-external mysql-connector-python mysql-connector-python flake8 psycopg2
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 'create database dataset;' -U postgres; fi"