forked from krischer/django-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (40 loc) · 1.18 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
language: python
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
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"
matrix:
exclude:
# 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 1.9+ and Python 3.3 don't work together.
- python: "3.3"
env: DJANGO_VERSION=">=1.9,<1.10"
- python: "3.3"
env: DJANGO_VERSION=">=1.10,<1.11"
- python: "3.3"
env: DJANGO_VERSION=">=1.11,<2.0"
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