forked from krischer/django-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
58 lines (56 loc) · 1.75 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
language: python
dist: xenial
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
env:
- DJANGO_VERSION=">=1.6,<1.7"
- DJANGO_VERSION=">=1.7,<1.8"
- DJANGO_VERSION=">=1.8,<1.9"
- DJANGO_VERSION=">=1.9,<1.10"
- DJANGO_VERSION=">=1.10,<1.11"
- DJANGO_VERSION=">=1.11,<2.0"
- DJANGO_VERSION=">=2.1,<2.2"
- DJANGO_VERSION=">=2.2,<2.3"
matrix:
exclude:
# Python 3.4 does not work with some django versions.
- python: "3.4"
env: DJANGO_VERSION=">=1.6,<1.7"
- python: "3.4"
env: DJANGO_VERSION=">=1.7,<1.8"
# Python 3.5 does not work with some django versions.
- python: "3.5"
env: DJANGO_VERSION=">=1.6,<1.7"
- python: "3.5"
env: DJANGO_VERSION=">=1.7,<1.8"
# Django 2.x only works under python3
- python: "2.7"
env: DJANGO_VERSION=">=2.1,<2.2"
- python: "2.7"
env: DJANGO_VERSION=">=2.2,<2.3"
# Django >= 2.1 only supports python >= 3.5
- python: "3.4"
env: DJANGO_VERSION=">=2.1,<2.2"
- python: "3.4"
env: DJANGO_VERSION=">=2.2,<2.3"
# Django =>1.6<=1.8 is not supported under python >=3.6
- python: "3.6"
env: DJANGO_VERSION=">=1.6,<1.7"
- python: "3.6"
env: DJANGO_VERSION=">=1.7,<1.8"
install:
- pip install "Django${DJANGO_VERSION}"
- pip install .
script:
# First run the tests.
- cd $TRAVIS_BUILD_DIR/example-project; python manage.py test djangoplugins
# Now make sure that migrations don't fail.
- cd $TRAVIS_BUILD_DIR/example-project
# manage.py migrate was not available on older django versions.
- if [ ${DJANGO_VERSION} == ">=1.6,<1.7" ];
then python manage.py syncdb --noinput; else
python manage.py migrate;
fi