forked from disqus/django-bitfield
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
46 lines (37 loc) · 1.17 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
language: python
python:
- "2.7"
- "3.4"
- "3.5"
sudo: false
cache:
directories:
- node_modules
- .pip_download_cache
- "$HOME/virtualenv/python2.7.9"
env:
matrix:
- DB=postgres DJANGO="Django==1.8.14"
- DB=sqlite DJANGO="Django==1.8.14"
- DB=postgres DJANGO="Django==1.9.9"
- DB=sqlite DJANGO="Django==1.9.9"
- DB=postgres DJANGO="Django==1.10"
- DB=sqlite DJANGO="Django==1.10"
- '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"'
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}"
- make
script:
- make lint
- make test