1212 - name : " Python 2.7 on Linux"
1313 env : NODE_GYP_FORCE_PYTHON=python2
1414 python : 2.7
15- - name : " Python 2.7 on macOS"
16- os : osx
17- osx_image : xcode11.2
18- language : shell # 'language: python' is not yet supported on macOS
19- env : NODE_GYP_FORCE_PYTHON=python2
20- before_install :
21- - pyenv install 2.7
22- - pyenv global 2.7
23- - name : " Node.js 6 & Python 2.7 on Windows"
24- os : windows
25- language : node_js
26- node_js : 6 # node
27- env : >-
28- PATH=/c/Python27:/c/Python27/Scripts:$PATH
29- NODE_GYP_FORCE_PYTHON=/c/Python27/python.exe
30- before_install : choco install python2
31- - name : " Node.js 12 & Python 2.7 on Windows"
32- os : windows
33- language : node_js
34- node_js : 12 # node
35- env : >-
36- PATH=/c/Python27:/c/Python27/Scripts:$PATH
37- NODE_GYP_FORCE_PYTHON=/c/Python27/python.exe
38- before_install : choco install python2
3915
4016 - name : " Node.js 6 & Python 3.8 on Linux"
4117 python : 3.8
@@ -66,11 +42,36 @@ jobs:
6642 env : NODE_GYP_FORCE_PYTHON=python3
6743 before_install : nvm install 12
6844
69- - name : " Python 3 .7 on macOS"
45+ - name : " Python 2 .7 on macOS"
7046 os : osx
7147 osx_image : xcode11.2
7248 language : shell # 'language: python' is not yet supported on macOS
73- env : NODE_GYP_FORCE_PYTHON=python3
49+ env : NODE_GYP_FORCE_PYTHON=python2 PATH=$HOME/.pyenv/shims:$PATH PYENV_VERSION=2.7.17
50+ before_install : pyenv install $PYENV_VERSION
51+ - name : " Python 3.8 on macOS"
52+ os : osx
53+ osx_image : xcode11.2
54+ language : shell # 'language: python' is not yet supported on macOS
55+ env : NODE_GYP_FORCE_PYTHON=python3 PATH=$HOME/.pyenv/shims:$PATH PYENV_VERSION=3.8.0
56+ before_install : pyenv install $PYENV_VERSION
57+
58+ - name : " Node.js 6 & Python 2.7 on Windows"
59+ os : windows
60+ language : node_js
61+ node_js : 6 # node
62+ env : >-
63+ PATH=/c/Python27:/c/Python27/Scripts:$PATH
64+ NODE_GYP_FORCE_PYTHON=/c/Python27/python.exe
65+ before_install : choco install python2
66+ - name : " Node.js 12 & Python 2.7 on Windows"
67+ os : windows
68+ language : node_js
69+ node_js : 12 # node
70+ env : >-
71+ PATH=/c/Python27:/c/Python27/Scripts:$PATH
72+ NODE_GYP_FORCE_PYTHON=/c/Python27/python.exe
73+ before_install : choco install python2
74+
7475 - name : " Node.js 12 & Python 3.7 on Windows"
7576 os : windows
7677 language : node_js
@@ -89,20 +90,19 @@ jobs:
8990 before_install : choco install python
9091
9192install :
92- # - pip install -r requirements.txt
93- - pip install --upgrade flake8 pytest==4.6.6 # pytest 5 no longer supports legacy Python
93+ - python -m pip install --upgrade flake8 pytest==4.6.6 # pytest 5 no longer supports legacy Python
9494before_script :
95- - flake8 --version
95+ - python -m flake8 --version
9696 # stop the build if there are Python syntax errors or undefined names
97- - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
97+ - python -m flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
9898 # exit-zero treats all errors as warnings. Two space indentation is OK. The GitHub editor is 127 chars wide
99- - flake8 . --count --exit-zero --ignore=E111,E114,W503 --max-complexity=10 --max-line-length=127 --statistics
99+ - python -m flake8 . --count --exit-zero --ignore=E111,E114,W503 --max-complexity=10 --max-line-length=127 --statistics
100100 - npm install
101101 - npm list
102102script :
103103 - node -e 'require("npmlog").level="verbose"; require("./lib/find-python")(null,()=>{})'
104104 - npm test
105- - GYP_MSVS_VERSION=2015 GYP_MSVS_OVERRIDE_PATH="C:\\Dummy" pytest
105+ - GYP_MSVS_VERSION=2015 GYP_MSVS_OVERRIDE_PATH="C:\\Dummy" python -m pytest
106106notifications :
107107 on_success : change
108108 on_failure : change # `always` will be the setting once code changes slow down
0 commit comments