forked from jazzband/django-simple-history
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
59 lines (53 loc) · 1.43 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
language: python
dist: xenial
sudo: false
python:
- 2.7
- 3.4
- 3.5
- 3.6
- 3.7
- 3.8
env:
- DJANGO="Django>=1.11,<1.12"
- DJANGO="Django>=2.0,<2.1"
- DJANGO="Django>=2.1,<2.2"
- DJANGO="Django>=2.2,<2.3"
- DJANGO="Django>=3.0,<3.1"
install:
- pip install -U coverage codecov
- pip install -U flake8==3.7.9
- pip install -U $DJANGO
- if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then pip install black==19.10b0; fi
- if [[ $TRAVIS_PYTHON_VERSION == '3.7' ]]; then pip install black==19.10b0; fi
- pip freeze
script:
- flake8 simple_history
- if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then black --check simple_history setup.py runtests.py; fi
- if [[ $TRAVIS_PYTHON_VERSION == '3.7' ]]; then black --check simple_history setup.py runtests.py; fi
- coverage run setup.py test
matrix:
exclude:
- python: 3.8
env: DJANGO="Django>=1.11,<1.12"
- python: 2.7
env: DJANGO="Django>=2.0,<2.1"
- python: 3.8
env: DJANGO="Django>=2.0,<2.1"
- python: 2.7
env: DJANGO="Django>=2.1,<2.2"
- python: 3.4
env: DJANGO="Django>=2.1,<2.2"
- python: 3.8
env: DJANGO="Django>=2.1,<2.2"
- python: 2.7
env: DJANGO="Django>=2.2,<2.3"
- python: 3.4
env: DJANGO="Django>=2.2,<2.3"
- python: 2.7
env: DJANGO="Django>=3.0,<3.1"
- python: 3.4
env: DJANGO="Django>=3.0,<3.1"
- python: 3.5
env: DJANGO="Django>=3.0,<3.1"
after_success: codecov