forked from jmrivas86/django-json-widget
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
73 lines (64 loc) · 1.59 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
# Config file for automatic testing at travis-ci.org
language: python
python:
- "3.7"
- "3.6"
- "3.5"
- "3.4"
- "2.7"
matrix:
fast_finish: true
include:
# DJANGO 1.11
- python: 2.7
env: DJANGO_VERSION=1.11
- python: 3.4
env: DJANGO_VERSION=1.11
- python: 3.5
env: DJANGO_VERSION=1.11
- python: 3.6
env: DJANGO_VERSION=1.11
# DJANGO 2.0
- python: 3.4
env: DJANGO_VERSION=2.0
- python: 3.5
env: DJANGO_VERSION=2.0
- python: 3.6
env: DJANGO_VERSION=2.0
- python: 3.7
env: DJANGO_VERSION=2.0
# DJANGO 2.1
- python: 3.5
env: DJANGO_VERSION=2.1
- python: 3.6
env: DJANGO_VERSION=2.1
- python: 3.7
env: DJANGO_VERSION=2.1
# DJANGO 2.2.10
- python: 3.5
env: DJANGO_VERSION=2.2.10
- python: 3.6
env: DJANGO_VERSION=2.2.10
- python: 3.7
env: DJANGO_VERSION=2.2.10
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install:
- echo "$DJANGO_VERSION"
- pip install -r requirements_test.txt
- if [[ "$DJANGO_VERSION" == 1.11 ]]; then
pip install Django==1.11.27;
fi
- if [[ "$DJANGO_VERSION" == 2.0 ]]; then
pip install Django==2.0.13;
fi
- if [[ "$DJANGO_VERSION" == 2.1 ]]; then
pip install Django==2.1.15;
fi
- if [[ "$DJANGO_VERSION" == 2.2.10 ]]; then
pip install Django==2.2.9;
fi
# command to run tests using coverage, e.g. python setup.py test
script: coverage run --source django_json_widget runtests.py
# script: tox -e $TOX_ENV
# after_success:
# - codecov -e TOX_ENV