Skip to content

Commit

Permalink
travis: redirect pyenv log to a file
Browse files Browse the repository at this point in the history
  • Loading branch information
efiop authored Apr 30, 2019
1 parent 69a6993 commit 2cba711
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/ci/before_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
# NOTE: used to install and run our style checking tools
osx_python_ver=3.6.2
eval "$(pyenv init -)"
pyenv install --list
pyenv install --skip-existing --keep --verbose $osx_python_ver
pyenv install --skip-existing --keep --verbose $osx_python_ver &> pyenv.log || tail -n 50 pyenv.log
pyenv shell $osx_python_ver
python --version
fi
Expand Down Expand Up @@ -60,7 +59,7 @@ fi

if [[ -n "$PYTHON_VER" ]]; then
eval "$(pyenv init -)"
pyenv install --skip-existing --keep --verbose "$PYTHON_VER"
pyenv install --skip-existing --keep --verbose "$PYTHON_VER" &> pyenv.log || tail -n 50 pyenv.log
echo 'eval "$(pyenv init -)"' >> env.sh
echo "pyenv shell $PYTHON_VER" >> env.sh
fi

0 comments on commit 2cba711

Please sign in to comment.