20 lines
883 B
YAML
Raw Normal View History

2013-12-18 04:21:34 +01:00
---
language: python
python:
- '3.3'
- '2.7'
- '2.6'
env:
- DATABASE_URL=sqlite:///:memory:
- DATABASE_URL=postgresql+psycopg2://postgres@127.0.0.1/dataset
- DATABASE_URL=mysql+pymysql://travis@127.0.0.1/dataset?charset=utf8
2014-01-25 22:13:52 +01:00
install:
- pip install flake8 psycopg2 pymysql
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"
- sh -c "if [ '$DATABASE_URL' = 'mysql+pymysql://travis@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:
2014-01-25 21:45:30 +01:00
- flake8 --ignore=E501,E123,E124,E126,E127,E128 dataset test
2014-01-25 22:13:52 +01:00
- python setup.py test