forked from Kotti/Kotti
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (32 loc) · 918 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
27
28
29
30
31
32
language: python
sudo: false
cache:
directories:
- $HOME/.cache/pip
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
python:
- "2.7"
# - "2.6"
env:
- 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 -U pip wheel setuptools
- travis_retry pip install psycopg2 oursql python-coveralls codecov
- travis_retry pip install -e . -r requirements.txt
- pip uninstall -y Kotti
- python setup.py develop
- python setup.py dev
before_script:
- psql -c 'create database kotti_testing;' -U postgres
- mysql -e 'create database kotti_testing;'
script:
- py.test -rw --runslow --tb=native --cov=kotti --cov-report=term-missing
after_success:
- coveralls
- codecov
notifications:
irc: "irc.freenode.org#kotti"
email: false