-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
73 lines (65 loc) · 2.02 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
language: python
os: linux
python:
- 2.7
- 3.5
- 3.6
- 3.7
- 3.8
- 3.9
env:
- FLAKE="3.2.x" PACKAGE_VERSION="flake8<3.3.0"
- FLAKE="3.3.x" PACKAGE_VERSION="flake8<3.4.0"
- FLAKE="3.4.x" PACKAGE_VERSION="flake8<3.5.0"
- FLAKE="3.5.x" PACKAGE_VERSION="flake8==3.5.0"
- FLAKE="3.6.x" PACKAGE_VERSION="flake8==3.6.0"
- FLAKE="3.7.x" PACKAGE_VERSION="flake8<3.8.0"
- FLAKE="3.8.x" PACKAGE_VERSION="flake8<3.9.0"
- FLAKE="latest" PACKAGE_VERSION="--pre flake8"
cache:
pip: true
install:
- pip install -e .[tests]
script:
- pip install -q -U $PACKAGE_VERSION
- flake8 --version
- >
test $TRAVIS_PYTHON_VERSION = "2.7" && test $FLAKE = "latest" && coverage run -m pytest
|| pytest -v
after_success:
- >
test $TRAVIS_PYTHON_VERSION = "2.7" && test $FLAKE = "latest"
&& bash <(curl -s https://codecov.io/bash)
after_success:
- test $TRAVIS_PYTHON_VERSION = "2.7" && test $FLAKE = "latest" && bash <(curl -s https://codecov.io/bash)
jobs:
allow_failures:
- python: 3.9
env: FLAKE="3.2.x" PACKAGE_VERSION="flake8<3.3.0"
- python: 3.9
env: FLAKE="3.3.x" PACKAGE_VERSION="flake8<3.4.0"
- python: 3.9
env: FLAKE="3.4.x" PACKAGE_VERSION="flake8<3.5.0"
- python: 3.9
env: FLAKE="3.5.x" PACKAGE_VERSION="flake8==3.5.0"
- python: 3.9
env: FLAKE="3.6.x" PACKAGE_VERSION="flake8==3.6.0"
- python: 3.9
env: FLAKE="3.7.x" PACKAGE_VERSION="flake8<3.8.0"
- python: 3.9
env: FLAKE="3.8.x" PACKAGE_VERSION="flake8<3.9.0"
- python: 3.9
env: FLAKE="latest" PACKAGE_VERSION="--pre flake8"
exclude:
- python: 3.8
env: FLAKE="3.2.x" PACKAGE_VERSION="flake8<3.3.0"
- python: 3.8
env: FLAKE="3.3.x" PACKAGE_VERSION="flake8<3.4.0"
- python: 3.8
env: FLAKE="3.4.x" PACKAGE_VERSION="flake8<3.5.0"
- python: 3.8
env: FLAKE="3.5.x" PACKAGE_VERSION="flake8==3.5.0"
- python: 3.8
env: FLAKE="3.6.x" PACKAGE_VERSION="flake8==3.6.0"
- python: 3.8
env: FLAKE="3.7.x" PACKAGE_VERSION="flake8<3.8.0"