2019-01-31 18:19:09 +01:00
dist : xenial
2013-12-18 04:21:34 +01:00
language : python
python :
2019-01-31 14:56:19 +01:00
- '3.7'
2017-09-02 08:56:53 +02:00
- '3.6'
- '3.5'
- '2.7'
services :
- mysql
- postgresql
2014-01-31 17:41:17 +01:00
env :
2017-09-02 08:56:53 +02:00
- 'DATABASE_URL=sqlite:///:memory:'
- DATABASE_URL=postgresql+psycopg2://postgres@127.0.0.1/dataset
2017-09-02 09:01:30 +02:00
- DATABASE_URL=mysql+pymysql://root@127.0.0.1/dataset?charset=utf8
2014-01-25 22:13:52 +01:00
install :
2017-09-02 08:56:53 +02:00
- pip install -U pip wheel
- pip install flake8 psycopg2 PyMySQL nose
- pip install -e .
2014-01-31 17:41:17 +01:00
before_script :
2017-09-02 08:56:53 +02:00
- 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"
2017-09-02 09:01:30 +02:00
- sh -c "if [ '$DATABASE_URL' = 'mysql+pymysql://root@127.0.0.1/dataset?charset=utf8' ]; then mysql -e 'create database IF NOT EXISTS dataset DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;'; fi"
2013-12-18 04:21:34 +01:00
script :
2017-09-02 08:56:53 +02:00
- flake8 --ignore=E501,E123,E124,E126,E127,E128 dataset test
- nosetests -v
2015-05-23 14:35:46 +02:00
cache :
directories :
- $HOME/.cache/pip