From c392a175f0a06796861d28eb8b36a9ddd0d41d7d Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Thu, 28 Nov 2019 18:49:45 +0100 Subject: [PATCH] Travis CI: Fix the macOS tests on Python 2.7 & 3.7 --- .travis.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4c67788aaa..e89fca16f2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 @@ -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 @@ -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