try switching the SQL driver for travis

This commit is contained in:
Friedrich Lindenberg 2016-01-18 11:26:24 +01:00
parent 91d587849d
commit 4e334d949f

View File

@ -7,10 +7,10 @@ python:
env:
- DATABASE_URL=sqlite:///:memory:
- DATABASE_URL=postgresql+psycopg2://postgres@127.0.0.1/dataset
- DATABASE_URL=mysql+mysqlconnector://travis@127.0.0.1/dataset?charset=utf8
- DATABASE_URL=mysql+mysqldb://travis@127.0.0.1/dataset?charset=utf8
install:
- pip install -U pip wheel
- pip install mysqlclient flake8 psycopg2
- pip install mysql-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"