Skip to content

Commit 7e81270

Browse files
committed
test: cover supported node versions with travis
PR-URL: #1809 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: cclauss <[email protected]>
1 parent 2410914 commit 7e81270

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.travis.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ matrix:
55
include:
66
- name: "Python 2.7 on Linux"
77
python: 2.7
8-
- name: "Python 3.7 on Linux"
9-
python: 3.7
108
- name: "Python 2.7 on macOS"
119
os: osx
1210
osx_image: xcode10.2
@@ -18,6 +16,18 @@ matrix:
1816
node_js: 12 # node
1917
env: PATH=/c/Python27:/c/Python27/Scripts:$PATH
2018
before_install: choco install python2
19+
- name: "Node.js 6 & Python 3.7 on Linux"
20+
python: 3.7
21+
before_install: nvm install 6
22+
- name: "Node.js 8 & Python 3.7 on Linux"
23+
python: 3.7
24+
before_install: nvm install 8
25+
- name: "Node.js 10 & Python 3.7 on Linux"
26+
python: 3.7
27+
before_install: nvm install 10
28+
- name: "Node.js 12 & Python 3.7 on Linux"
29+
python: 3.7
30+
before_install: nvm install 12
2131
allow_failures:
2232
- os: windows
2333
install:
@@ -26,7 +36,7 @@ install:
2636
before_script:
2737
- flake8 --version
2838
# stop the build if there are Python syntax errors or undefined names
29-
- flake8 . --count --select=E9,F63,F72,F82 --show-source --statistics
39+
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3040
# exit-zero treats all errors as warnings. Two space indentation is OK. The GitHub editor is 127 chars wide
3141
- flake8 . --count --exit-zero --ignore=E111,E114,W503 --max-complexity=10 --max-line-length=127 --statistics
3242
- npm install

0 commit comments

Comments
 (0)