travis: activate pyenv

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2019-02-08 21:39:15 +02:00
parent 74509cf29f
commit 4f36ce35ad
2 changed files with 7 additions and 6 deletions
+7 -1
View File
@@ -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