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