From 514b4241049a33e70aa726aa83dd210c0c707373 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Fri, 1 Feb 2019 10:32:58 +0200 Subject: [PATCH] travis: use pyenv to install python on osx Signed-off-by: Ruslan Kuprieiev --- scripts/ci/before_install.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/ci/before_install.sh b/scripts/ci/before_install.sh index 33e79df0d..bad644d54 100644 --- a/scripts/ci/before_install.sh +++ b/scripts/ci/before_install.sh @@ -4,8 +4,11 @@ set -x set -e if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then - brew update - brew upgrade python + # NOTE: used to install and run our style checking tools + osx_python_ver=3.6.2 + eval "$(pyenv init -)" + pyenv install --skip-existing --keep --verbose $osx_python_ver + pyenv shell $osx_python_ver python --version fi