Even better in the syntaxness.
This commit is contained in:
parent
58645a5d66
commit
bbaa90851e
@ -9,7 +9,7 @@ env:
|
|||||||
- DATABASE_URL=postgresql+psycopg2://postgres@127.0.0.1/dataset
|
- 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+mysqlconnector://travis@127.0.0.1/dataset?charset=utf8
|
||||||
install:
|
install:
|
||||||
- pip install --allow-external flake8 psycopg2 mysql-connector-python
|
- pip install --allow-external mysql-connector-python mysql-connector-python flake8 psycopg2
|
||||||
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"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user