From 4f36ce35adf9d05e8000af1fe1ece4ed59a8847d Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Fri, 8 Feb 2019 21:39:15 +0200 Subject: [PATCH] travis: activate pyenv Signed-off-by: Ruslan Kuprieiev --- .travis.yml | 5 ----- scripts/ci/before_install.sh | 8 +++++++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1f9618a94..7ff7ea7d8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -62,11 +62,6 @@ matrix: - PYTHON_CONFIGURE_OPTS="--enable-framework" before_install: - bash ./scripts/ci/before_install.sh - - if [[ -n "$PYTHON_VER" ]]; then - eval "$(pyenv init -)"; - pyenv install --skip-existing --keep --verbose "$PYTHON_VER"; - pyenv shell "$PYTHON_VER"; - fi - source env.sh install: - bash ./scripts/ci/install.sh diff --git a/scripts/ci/before_install.sh b/scripts/ci/before_install.sh index 9b223c1d8..3bb79e51b 100644 --- a/scripts/ci/before_install.sh +++ b/scripts/ci/before_install.sh @@ -53,7 +53,13 @@ if [ -n "$TRAVIS_OS_NAME" ] && [ "$TRAVIS_OS_NAME" != "osx" ] \ bash "$scriptdir/install_hadoop.sh" fi -if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then +if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install openssl brew cask install google-cloud-sdk fi + +if [[ -n "$PYTHON_VER" ]]; then + eval "$(pyenv init -)" + pyenv install --skip-existing --keep --verbose "$PYTHON_VER" + echo "pyenv activate $PYTHON_VER" >> env.sh +fi