From 02a0d592f9dcb31c0ad78332dbf131f82a43ea4c Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Thu, 9 Jan 2020 10:08:47 +0100 Subject: [PATCH] Install python3 in Travis MacOS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For some reason, `homebrew install gcovr` now install python3 as dependency. This is a dependency since a long time, I don't know why it was not installing it before. But the installation fails because it cannot link correctly python3 because python2 is already installed. Then meson, when it tries to run the conversion script, fails because the script cannot find python3. The solution I've found is to unlink python2 and relink python3 to have a correct installation of python3. --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 00a9e5d63..855b79df9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ sudo: true cache: ccache before_install: - PATH=$PATH:$HOME/bin +- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew unlink python@2; brew link --overwrite python@3; fi install: travis/install_deps.sh script: travis/compile.sh env: