-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
31 lines (31 loc) · 1.38 KB
/
.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
language: python
python:
- "2.6"
- "2.7"
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://
# - KOTTI=master KOTTI_TEST_DB_STRING=postgresql://postgres@localhost:5432/kotti_testing
# - KOTTI=master KOTTI_TEST_DB_STRING=mysql+oursql://root@localhost:3306/kotti_testing
# - KOTTI=master KOTTI_TEST_DB_STRING=sqlite://
# - KOTTI=0.8a1 KOTTI_TEST_DB_STRING=postgresql://postgres@localhost:5432/kotti_testing
# - KOTTI=0.8a1 KOTTI_TEST_DB_STRING=mysql+oursql://root@localhost:3306/kotti_testing
# - KOTTI=0.8a1 KOTTI_TEST_DB_STRING=sqlite://
install:
# - pip install -r https://raw.github.com/Kotti/Kotti/$KOTTI/requirements.txt
# - pip install http://kottipackages.xo7.de/Kotti-$KOTTI.tar.gz
- pip install psycopg2 oursql
- pip install -r https://raw.github.com/Kotti/Kotti/master/requirements.txt
- pip install http://kottipackages.xo7.de/Kotti-master.tar.gz
- python setup.py develop
- python setup.py dev
before_script:
- mysql -e 'create database kotti_testing;'
- psql -c 'create database kotti_testing;' -U postgres
script: py.test --tb=native --cov=kotti_media --cov-report=term-missing
after_script:
- mysql -e 'drop database kotti_testing;'
- psql -c 'drop database kotti_testing;' -U postgres
notifications:
irc: "irc.freenode.org#kotti"