mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-04 23:09:44 +01:00
25 lines
435 B
Bash
25 lines
435 B
Bash
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
|