From a2d3ced7f14cafd212e3971595144fd810205e51 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Sun, 5 Aug 2018 18:11:00 +0300 Subject: [PATCH] travis: test version reported by pip Signed-off-by: Ruslan Kuprieiev --- scripts/ci/script.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/scripts/ci/script.sh b/scripts/ci/script.sh index 2b7e69a4b..4bcba91f3 100644 --- a/scripts/ci/script.sh +++ b/scripts/ci/script.sh @@ -13,6 +13,20 @@ fi if [[ ! -z "$TRAVIS_TAG" ]]; then ./scripts/build_package.sh + # Test version + pip uninstall -y dvc + if ! type dvc > /dev/null; then + print "ERROR: dvc command already exists!!!" + exit 1 + fi + + pip install dist/dvc-*.whl + if [[ "$(dvc --version)" != "dvc $TRAVIS_TAG" ]]; then + print "ERROR: 'dvc --version'($(dvc -V)) doesn't match 'dvc $TRAVIS_TAG'" + exit 1 + fi + pip uninstall -y dvc + PY_VER=$(python -c 'import sys; print(sys.version_info[0:2])') if [[ "$PY_VER" != '(3, 7)' ]]; then ./scripts/build_posix.sh