Skip to content

Commit d6a7e0e

Browse files
cclaussrvagg
authored andcommitted
test: fix macOS Travis on Python 2.7 & 3.7
Uses `pyenv` to manage MacOS python versions since its not included in the environment. rvagg: landing this from #1979 even though it wasn't from the original author. Treating approval there as approval of this commit too. PR-URL: #1979 Reviewed-By: Rod Vagg <rod@vagg.org>
1 parent 5a64e9b commit d6a7e0e

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.travis.yml

+10-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
dist: xenial
22
language: python
33
cache: pip
4-
matrix:
4+
addons:
5+
homebrew:
6+
update: true
7+
packages:
8+
- npm
9+
- pyenv
10+
jobs:
511
include:
612
- name: "Python 2.7 on Linux"
713
env: NODE_GYP_FORCE_PYTHON=python2
@@ -11,7 +17,9 @@ matrix:
1117
osx_image: xcode11.2
1218
language: shell # 'language: python' is not yet supported on macOS
1319
env: NODE_GYP_FORCE_PYTHON=python2
14-
before_install: HOMEBREW_NO_AUTO_UPDATE=1 brew install npm
20+
before_install:
21+
- pyenv install 2.7
22+
- pyenv global 2.7
1523
- name: "Node.js 6 & Python 2.7 on Windows"
1624
os: windows
1725
language: node_js
@@ -64,7 +72,6 @@ matrix:
6472
osx_image: xcode11.2
6573
language: shell # 'language: python' is not yet supported on macOS
6674
env: NODE_GYP_FORCE_PYTHON=python3
67-
before_install: HOMEBREW_NO_AUTO_UPDATE=1 brew upgrade npm || true
6875
- name: "Node.js 12 & Python 3.7 on Windows"
6976
os: windows
7077
language: node_js

0 commit comments

Comments
 (0)