forked from Fantomas42/django-blog-zinnia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (32 loc) · 779 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
sudo: false
language: python
python:
- 3.5
- 3.6
env:
- DATABASE_ENGINE=sqlite
- DATABASE_ENGINE=postgres
- DATABASE_ENGINE=mysql
matrix:
fast_finish: true
install:
- pip install zc.buildout
- buildout -c travis.cfg testenv:DJANGO_SETTINGS_MODULE=zinnia.tests.implementations.$DATABASE_ENGINE
- sh -c "if [ '$DATABASE_ENGINE' = 'postgres' ];
then
pip install psycopg2;
fi"
- sh -c "if [ '$DATABASE_ENGINE' = 'mysql' ];
then
pip install mysqlclient;
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql;
fi"
before_script:
- ./bin/flake8 zinnia
script:
- ./bin/test
after_success:
- ./bin/coveralls
notifications:
irc:
- "irc.freenode.org#django-blog-zinnia"