forked from swisscom/cleanerversion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (36 loc) · 859 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
41
42
43
language: python
python:
- "2.7"
- "3.6"
env:
- TOX_ENV=django111-pg
- TOX_ENV=django111-sqlite
- TOX_ENV=django20-pg
- TOX_ENV=django20-sqlite
- TOX_ENV=pep8
matrix:
exclude:
- python: "2.7"
env: TOX_ENV=django20-pg
- python: "2.7"
env: TOX_ENV=django20-sqlite
# Enable PostgreSQL usage
addons:
postgresql: "9.3"
# Dependencies
install:
- pip install tox
- pip install tox-travis
- 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
# Run coveralls
after_success:
coveralls