travis: don't override before_install (#2239)

This commit is contained in:
Ruslan Kuprieiev
2019-07-07 15:57:08 +03:00
committed by GitHub
parent a4720d07c7
commit 7ad3c56865
5 changed files with 73 additions and 32 deletions
+24
View File
@@ -0,0 +1,24 @@
set -e
set -x
if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
where python
where pip
else
which python
which pip
fi
if [[ -z "$PYTHON_VER" ]]; then
exit 0
fi
if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
if [[ "$(python -c 'import sys; print(sys.version[:3])')" != "$PYTHON_VER" ]]; then
exit 1
fi
else
if [[ "$(python --version 2>&1)" != "Python $PYTHON_VER" ]]; then
exit 1
fi
fi