-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
56 lines (47 loc) · 1.11 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
sudo: false
language: python
cache: pip
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "3.7-dev"
env:
matrix:
- DJANGO="Django<1.12"
- DJANGO="Django<2.1"
- DJANGO="Django<2.2"
- DJANGO="Django<2.3"
install:
- pip install --upgrade pip wheel setuptools
- pip install coverage flake8
- pip install "$DJANGO"
- pip install -r requirements.txt
- pip install .
matrix:
fast_finish: true
exclude:
# Supported Django/Python versions - https://docs.djangoproject.com/en/2.1/faq/install/
# Latest Django 1.11
- { python: "3.7-dev", env: DJANGO="Django<1.12" }
# Latest Django 2.0
- { python: "2.7", env: DJANGO="Django<2.1" }
# Latest Django 2.1
- { python: "2.7", env: DJANGO="Django<2.2" }
- { python: "3.4", env: DJANGO="Django<2.2" }
# Latest Django 2.2
- { python: "2.7", env: DJANGO="Django<2.3" }
- { python: "3.4", env: DJANGO="Django<2.3" }
allow_failures:
- python: 3.7-dev
branches:
only:
- master
- dev
script:
- flake8 health_monitor
- flake8 test
- coverage run manage.py test
after_success:
- bash <(curl -s https://codecov.io/bash)