-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
26 lines (26 loc) · 932 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
services:
- elasticsearch
language: python
sudo: false
python:
- "2.7"
env:
- KOTTI_TEST_DB_STRING=mysql+mysqldb://root@localhost:3306/kotti_testing?charset=utf8&use_unicode=0
- KOTTI_TEST_DB_STRING=postgresql://postgres@localhost:5432/kotti_testing
- KOTTI_TEST_DB_STRING=mysql+oursql://root@localhost:3306/kotti_testing
- KOTTI_TEST_DB_STRING=sqlite://
install:
- travis_retry pip install "pip==1.3.1" # fix issue with fanstatic==1.0a
- travis_retry pip install -e . -r requirements.txt --use-mirrors
- pip uninstall -y Kotti
- python setup.py develop
- python setup.py dev
- travis_retry pip install psycopg2 oursql python-coveralls MySQL-python
before_script:
- psql -c 'create database kotti_testing;' -U postgres
- mysql -e 'create database kotti_testing;' -u root
- sleep 10 # needed for ES
script:
- py.test --tb=native --cov=kotti --cov-report=term-missing
after_success:
- coveralls