From 2cba71123778ba89b5e0780d4eb74d151bf01b5c Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Wed, 1 May 2019 02:55:29 +0300 Subject: [PATCH] travis: redirect pyenv log to a file --- scripts/ci/before_install.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/ci/before_install.sh b/scripts/ci/before_install.sh index 5e41b42cd..8c08d573e 100644 --- a/scripts/ci/before_install.sh +++ b/scripts/ci/before_install.sh @@ -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 @@ -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