Aim to fix Travis CI.
This commit is contained in:
parent
a797e90357
commit
58645a5d66
@ -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 flake8 psycopg2 mysql-connector-python
|
||||
- pip install --allow-external flake8 psycopg2 mysql-connector-python
|
||||
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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user