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