forked from maennel/cleanerversion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (34 loc) · 961 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
33
34
35
36
37
38
39
40
language: python
python: "2.7"
env:
- TOX_ENV=py27-django16-pg
- TOX_ENV=py27-django16-sqlite
- TOX_ENV=py27-django17-pg
- TOX_ENV=py27-django17-sqlite
- TOX_ENV=py27-django18-pg
- TOX_ENV=py27-django18-sqlite
- TOX_ENV=py34-django16-pg
- TOX_ENV=py34-django16-sqlite
- TOX_ENV=py34-django17-pg
- TOX_ENV=py34-django17-sqlite
- TOX_ENV=py34-django18-pg
- TOX_ENV=py34-django18-sqlite
# Enable PostgreSQL usage
addons:
postgresql: "9.3"
# Dependencies
install:
- pip install tox
- pip install coveralls
# Ensure PostgreSQL-DB to be configured correctly
before_script:
- cp -f cleanerversion/settings/pg_travis.py cleanerversion/settings/pg.py
- psql -c 'alter user postgres createdb;' -U postgres
- psql -c 'drop database if exists travis_ci_test;' -U postgres
- psql -c 'create database travis_ci_test with owner postgres;' -U postgres
# Run tests
script:
tox -e $TOX_ENV
# Run coveralls
after_success:
coveralls