forked from pylint-dev/pylint-django
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (51 loc) · 1.42 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
dist: xenial
language: python
python:
- 3.5
- 3.6
- 3.7
- 3.8
env:
# note: latest versions first b/c the top-most is included in new
# build stages if not specified
- DJANGO=3.0
- DJANGO=2.2
stages:
- django_not_installed
- django_is_installed
- test
- build_and_package_sanity
matrix:
include:
- { stage: django_not_installed, python: 3.6, env: TOXENV=django_not_installed }
- { stage: django_is_installed, python: 3.6, env: TOXENV=django_is_installed }
- { stage: test, python: 3.6, env: DJANGO=3.0 }
- { stage: test, python: 3.6, env: DJANGO=2.0 }
- { stage: test, python: 3.6, env: DJANGO=1.11 }
- { stage: test, python: 3.6, env: DJANGO=master }
- { stage: test, python: 3.6, env: TOXENV=flake8 }
- { stage: test, python: 3.6, env: TOXENV=pylint }
- { stage: test, python: 3.6, env: TOXENV=readme }
- { stage: build_and_package_sanity, python: 3.6, env: SANITY_CHECK=1 }
before_install:
- git clone --depth 1 https://github.com/PyCQA/pylint.git --branch 2.4 --single-branch ~/pylint
install:
- pip install tox-travis
- pip install -e .[for_tests]
script:
- |
if [ -z "$SANITY_CHECK" ]; then
tox
else
./scripts/build.sh
fi
after_success:
- |
if [ -z "$SANITY_CHECK" ]; then
pip install coveralls
coveralls
fi
notifications:
email:
on_failure: change
on_success: never