From 5e15f7036f7bb21843e98dc6af124682708c4a09 Mon Sep 17 00:00:00 2001 From: Amir Mohammadi <183.amir@gmail.com> Date: Wed, 25 Jan 2017 22:42:01 +0100 Subject: [PATCH] do not use beta wheels when building a tag --- gitlab/before_build.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gitlab/before_build.sh b/gitlab/before_build.sh index 4a703c4..7ee5ddb 100755 --- a/gitlab/before_build.sh +++ b/gitlab/before_build.sh @@ -42,7 +42,12 @@ PIPOPTS="--find-links ${WHEELS_REPOSITORY}" if [ ! -z "${WHEELS_SERVER}" ]; then PIPOPTS="${PIPOPTS} --trusted-host ${WHEELS_SERVER}" fi -PIPOPTS="${PIPOPTS} --pre --use-wheel --no-index" +# when building a tag, do not use beta wheels +if [ -z "${CI_BUILD_TAG}" ]; then + PIPOPTS="${PIPOPTS} --pre --use-wheel --no-index" +else + PIPOPTS="${PIPOPTS} --use-wheel --no-index" +fi if [ -e requirements.txt ]; then run_cmd ${use_pip} install ${PIPOPTS} --requirement requirements.txt else -- GitLab