Skip to content

Commit

Permalink
test: fix macOS Travis on Python 2.7 & 3.7
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
cclauss authored and rvagg committed Dec 15, 2019
1 parent 5a64e9b commit d6a7e0e
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
dist: xenial
language: python
cache: pip
matrix:
addons:
homebrew:
update: true
packages:
- npm
- pyenv
jobs:
include:
- name: "Python 2.7 on Linux"
env: NODE_GYP_FORCE_PYTHON=python2
Expand All @@ -11,7 +17,9 @@ matrix:
osx_image: xcode11.2
language: shell # 'language: python' is not yet supported on macOS
env: NODE_GYP_FORCE_PYTHON=python2
before_install: HOMEBREW_NO_AUTO_UPDATE=1 brew install npm
before_install:
- pyenv install 2.7
- pyenv global 2.7
- name: "Node.js 6 & Python 2.7 on Windows"
os: windows
language: node_js
Expand Down Expand Up @@ -64,7 +72,6 @@ matrix:
osx_image: xcode11.2
language: shell # 'language: python' is not yet supported on macOS
env: NODE_GYP_FORCE_PYTHON=python3
before_install: HOMEBREW_NO_AUTO_UPDATE=1 brew upgrade npm || true
- name: "Node.js 12 & Python 3.7 on Windows"
os: windows
language: node_js
Expand Down

0 comments on commit d6a7e0e

Please sign in to comment.