mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-04 15:28:27 +01:00
24 lines
352 B
Bash
24 lines
352 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
set -x
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
|
|
where python
|
|
where pip
|
|
else
|
|
which python
|
|
which pip
|
|
fi
|
|
|
|
py_ver="$(python -c 'import sys; print(sys.version[0])')"
|
|
if [[ -n "$PY2" ]]; then
|
|
if [[ "$py_ver" != "2" ]]; then
|
|
exit 1
|
|
fi
|
|
else
|
|
if [[ "$py_ver" != "3" ]]; then
|
|
exit 1
|
|
fi
|
|
fi
|