forked from disqus/django-bitfield
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
92 lines (79 loc) · 2.45 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
language: python
python:
- "2.6"
- "2.7"
- "3.3"
- "3.4"
sudo: false
cache:
directories:
- node_modules
- .pip_download_cache
- "$HOME/virtualenv/python2.7.9"
env:
matrix:
# - DB=mysql DJANGO=1.4.12
- DB=postgres DJANGO=1.4.12
- DB=sqlite DJANGO=1.4.12
# - DB=mysql DJANGO=1.5.7
- DB=postgres DJANGO=1.5.7
- DB=sqlite DJANGO=1.5.7
# - DB=mysql DJANGO=1.6.4
- DB=postgres DJANGO=1.6.4
- DB=sqlite DJANGO=1.6.4
# - DB=mysql DJANGO=1.7.7
- DB=postgres DJANGO=1.7.7
- DB=sqlite DJANGO=1.7.7
# - DB=mysql DJANGO=1.8
- DB=postgres DJANGO=1.8
- DB=sqlite DJANGO=1.8
# - 'DB=mysql DJANGO="-e git+git://github.com/django/django.git#egg=Django"'
- 'DB=postgres DJANGO="-e git+git://github.com/django/django.git#egg=Django"'
- 'DB=sqlite DJANGO="-e git+git://github.com/django/django.git#egg=Django"'
global:
- PIP_DOWNLOAD_CACHE=".pip_download_cache"
matrix:
allow_failures:
# - env: 'DB=mysql DJANGO="-e git+git://github.com/django/django.git#egg=Django"'
- env: 'DB=postgres DJANGO="-e git+git://github.com/django/django.git#egg=Django"'
- env: 'DB=sqlite DJANGO="-e git+git://github.com/django/django.git#egg=Django"'
exclude:
# - python: "3.3"
# env: DB=mysql DJANGO=1.4.12
- python: "3.3"
env: DB=postgres DJANGO=1.4.12
- python: "3.3"
env: DB=sqlite DJANGO=1.4.12
# - python: "3.4"
# env: DB=mysql DJANGO=1.4.12
- python: "3.4"
env: DB=postgres DJANGO=1.4.12
- python: "3.4"
env: DB=sqlite DJANGO=1.4.12
# - python: "2.6"
# env: DB=mysql DJANGO=1.7.7
- python: "2.6"
env: DB=postgres DJANGO=1.7.7
- python: "2.6"
env: DB=sqlite DJANGO=1.7.7
# - python: "2.6"
# env: DB=mysql DJANGO=1.8
- python: "2.6"
env: DB=postgres DJANGO=1.8
- python: "2.6"
env: DB=sqlite DJANGO=1.8
# - python: "2.6"
# env: 'DB=mysql DJANGO="-e git+git://github.com/django/django.git#egg=Django"'
- python: "2.6"
env: 'DB=postgres DJANGO="-e git+git://github.com/django/django.git#egg=Django"'
- python: "2.6"
env: 'DB=sqlite DJANGO="-e git+git://github.com/django/django.git#egg=Django"'
before_script:
- if [[ $DB = "postgres" ]]; then psql -c 'create database bitfield;' -U postgres; fi
- if [[ $DB = "mysql" ]]; then mysql -e 'create database bitfield'; fi
install:
- "pip install Django==${DJANGO}"
- make
script:
- make lint
- make test