sahara-ci-config/slave-scripts/gate-sahara_tests.sh
Vitaly Gridnev 78d51fb65c remove stable/kilo branch tests
stable/kilo is EOL-ed, so we can drop testing this branch
for sahara-ci

Change-Id: Ib486157e51cedd882e6dc39fbc573c83c451a4fd
2016-05-18 13:16:08 +03:00

25 lines
559 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"
;;
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"