sahara-ci-config/slave-scripts/gate-sahara_tests.sh
Evgeny Sikachev a3d5b65a33 Added support of newton branch to scripts
Added missed param for "case" for newton

Change-Id: Iba0eeefb228f8af619188f84c3e6f1978a7cf9a0
2016-11-28 11:31:42 +03:00

28 lines
618 B
Bash
Executable File

#!/bin/bash -xe
. $FUNCTION_PATH/functions-common.sh
plugin=$(echo $JOB_NAME | awk -F '-' '{ print $3 }')
release=$(echo $JOB_NAME | awk -F '-' '{ print $5 }')
case $release in
liberty)
ZUUL_BRANCH="stable/liberty"
;;
mitaka)
ZUUL_BRANCH="stable/mitaka"
;;
newton)
ZUUL_BRANCH="stable/newton"
;;
esac
sahara_path="/tmp/sahara"
get_dependency "$sahara_path" "openstack/sahara" "$ZUUL_BRANCH"
cd "$sahara_path"
tox -e venv --notest
.tox/venv/bin/pip install $WORKSPACE
$WORKSPACE/sahara-ci-config/slave-scripts/gate-sahara.sh "$sahara_path" "$WORKSPACE"