-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
74 lines (67 loc) · 4.88 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Config file for automatic testing at travis-ci.org
sudo: false
language: python
env:
matrix:
- "TOXENV=py27-django-16-unit DATABASE_URL=postgres://postgres@/django_teryt"
- "TOXENV=py27-django-16-unit DATABASE_URL=mysql://root:@localhost/django_teryt"
- "TOXENV=py27-django-16-unit DATABASE_URL=sqlite://:memory:"
- "TOXENV=py27-django-17-unit DATABASE_URL=postgres://postgres@/django_teryt"
- "TOXENV=py27-django-17-unit DATABASE_URL=mysql://root:@localhost/django_teryt"
- "TOXENV=py27-django-17-unit DATABASE_URL=sqlite://:memory:"
- "TOXENV=py27-django-18-unit DATABASE_URL=postgres://postgres@/django_teryt"
- "TOXENV=py27-django-18-unit DATABASE_URL=mysql://root:@localhost/django_teryt"
- "TOXENV=py27-django-18-unit DATABASE_URL=sqlite://:memory:"
- "TOXENV=py27-django-19-unit DATABASE_URL=postgres://postgres@/django_teryt"
- "TOXENV=py27-django-19-unit DATABASE_URL=mysql://root:@localhost/django_teryt"
- "TOXENV=py27-django-19-unit DATABASE_URL=sqlite://:memory:"
- "TOXENV=py34-django-16-unit DATABASE_URL=postgres://postgres@/django_teryt"
- "TOXENV=py34-django-16-unit DATABASE_URL=mysql://root:@localhost/django_teryt"
- "TOXENV=py34-django-16-unit DATABASE_URL=sqlite://:memory:"
- "TOXENV=py34-django-17-unit DATABASE_URL=postgres://postgres@/django_teryt"
- "TOXENV=py34-django-17-unit DATABASE_URL=mysql://root:@localhost/django_teryt"
- "TOXENV=py34-django-17-unit DATABASE_URL=sqlite://:memory:"
- "TOXENV=py34-django-18-unit DATABASE_URL=postgres://postgres@/django_teryt"
- "TOXENV=py34-django-18-unit DATABASE_URL=mysql://root:@localhost/django_teryt"
- "TOXENV=py34-django-18-unit DATABASE_URL=sqlite://:memory:"
- "TOXENV=py34-django-19-unit DATABASE_URL=postgres://postgres@/django_teryt"
- "TOXENV=py34-django-19-unit DATABASE_URL=mysql://root:@localhost/django_teryt"
- "TOXENV=py34-django-19-unit DATABASE_URL=sqlite://:memory:"
- "TOXENV=py27-django-16-integration DATABASE_URL=postgres://postgres@/django_teryt"
- "TOXENV=py27-django-16-integration DATABASE_URL=mysql://root:@localhost/django_teryt"
- "TOXENV=py27-django-16-integration DATABASE_URL=sqlite://:memory:"
- "TOXENV=py27-django-17-integration DATABASE_URL=postgres://postgres@/django_teryt"
- "TOXENV=py27-django-17-integration DATABASE_URL=mysql://root:@localhost/django_teryt"
- "TOXENV=py27-django-17-integration DATABASE_URL=sqlite://:memory:"
- "TOXENV=py27-django-18-integration DATABASE_URL=postgres://postgres@/django_teryt"
- "TOXENV=py27-django-18-integration DATABASE_URL=mysql://root:@localhost/django_teryt"
- "TOXENV=py27-django-18-integration DATABASE_URL=sqlite://:memory:"
- "TOXENV=py27-django-19-integration DATABASE_URL=postgres://postgres@/django_teryt"
- "TOXENV=py27-django-19-integration DATABASE_URL=mysql://root:@localhost/django_teryt"
- "TOXENV=py27-django-19-integration DATABASE_URL=sqlite://:memory:"
- "TOXENV=py34-django-16-integration DATABASE_URL=postgres://postgres@/django_teryt"
- "TOXENV=py34-django-16-integration DATABASE_URL=mysql://root:@localhost/django_teryt"
- "TOXENV=py34-django-16-integration DATABASE_URL=sqlite://:memory:"
- "TOXENV=py34-django-17-integration DATABASE_URL=postgres://postgres@/django_teryt"
- "TOXENV=py34-django-17-integration DATABASE_URL=mysql://root:@localhost/django_teryt"
- "TOXENV=py34-django-17-integration DATABASE_URL=sqlite://:memory:"
- "TOXENV=py34-django-18-integration DATABASE_URL=postgres://postgres@/django_teryt"
- "TOXENV=py34-django-18-integration DATABASE_URL=mysql://root:@localhost/django_teryt"
- "TOXENV=py34-django-18-integration DATABASE_URL=sqlite://:memory:"
- "TOXENV=py34-django-19-integration DATABASE_URL=postgres://postgres@/django_teryt"
- "TOXENV=py34-django-19-integration DATABASE_URL=mysql://root:@localhost/django_teryt"
- "TOXENV=py34-django-19-integration DATABASE_URL=sqlite://:memory:"
install:
- pip install tox coveralls codecov
before_script:
- coverage erase
# Needed for Django 1.6
- bash -c "if [[ $DATABASE_URL = postgres* ]]; then psql -c 'DROP DATABASE IF EXISTS django_teryt;' -U postgres; fi"
- bash -c "if [[ $DATABASE_URL = postgres* ]]; then psql -c 'CREATE DATABASE django_teryt;' -U postgres; fi"
- bash -c "if [[ $DATABASE_URL = mysql* ]]; then mysql -e 'CREATE DATABASE IF NOT EXISTS django_teryt;'; mysqladmin variables; mysql -e 'SET GLOBAL wait_timeout = 36000; SET GLOBAL max_allowed_packet = 33554432;'; mysqladmin variables; fi"
script: tox
after_success:
- coveralls
- codecov
addons:
postgresql: "9.4"