forked from jazzband/django-newsletter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (48 loc) · 1.14 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
language: python
sudo: false
python:
- 2.7
- 3.4
- 3.5
- 3.6
env:
- DJANGO="Django<1.12" # Django 1.11.x
- DJANGO="Django<2.1" # Django 2.0.x
- DJANGO="Django<2.2" # Django 2.1.x LTS
cache:
directories:
- $HOME/.cache/pip
matrix:
exclude:
# Only supported Python/Django combinations
- env: DJANGO="Django<1.12"
python: 3.7
- env: DJANGO="Django<2.1"
python: 2.7
- env: DJANGO="Django<2.2"
python: 2.7
- env: DJANGO="Django<2.2"
python: 3.4
include:
# Travis workaround for Python 3.7 support.
# https://github.com/travis-ci/travis-ci/issues/9069#issuecomment-425720905
- python: 3.7
sudo: required
dist: xenial
env: DJANGO="Django<2.1"
- python: 3.7
sudo: required
dist: xenial
env: DJANGO="Django<2.2"
# command to install dependencies
install:
# Latest PIP uses wheel by default
- pip install --upgrade pip
- pip install $DJANGO
- pip install -r requirements.txt
- pip install -r requirements_test.txt
- pip install coveralls
# command to run tests
script: coverage run setup.py test
after_success:
coveralls