Skip to content

Commit ae05bd9

Browse files
author
cclauss
authored
Run flake8 tests only on Python 2.7 and 3.7
1 parent 26e50e2 commit ae05bd9

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.travis.yml

+12-7
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
sudo: false
22
language: python
33
cache: pip
4-
python:
5-
- "3.6"
6-
- "3.5"
7-
- "3.4"
8-
- "2.7"
4+
5+
matrix:
6+
include:
7+
- python: 2.7
8+
- python: 3.4
9+
- python: 3.5
10+
- python: 3.6
11+
- python: 3.7
12+
dist: xenial # required for Python 3.7 (travis-ci/travis-ci#9069)
13+
sudo: required # required for Python 3.7 (travis-ci/travis-ci#9069)
914

1015
install:
1116
- python setup.py install
1217

1318
before_script:
19+
# Run flake8 tests only on Python 2.7 and 3.7...
1420
# 1) stop the build if there are Python syntax errors or undefined names
1521
# 2) exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
16-
# - if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then
17-
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then
22+
- if [[ $TRAVIS_PYTHON_VERSION == *.7 ]]; then
1823
pip install flake8;
1924
flake8 . --count --exit-zero --select=E901,E999,F821,F822,F823 --show-source --statistics;
2025
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics;

0 commit comments

Comments
 (0)