sahara-ci-config/slave-scripts/gate-sahara_tests.sh
Evgeny Sikachev 7ccee2ec6d Add sahara-ci to sahara-scenario
Add sahara-scenario to zuul/layout.yaml

Change-Id: Ie8756a7547fd1405030f2a417d69d1563338e126
2016-01-28 18:55:12 +03:00

31 lines
727 B
Bash
Executable File

#!/bin/bash -xe
. $FUNCTION_PATH/functions-common.sh
plugin=$(echo $JOB_NAME | awk -F '-' '{ print $5 }')
if [ $(echo $JOB_NAME | awk -F '-' '{ print $7 }') == 'liberty' ]; then
ZUUL_BRANCH="stable/liberty"
else
case $plugin in
vanilla_2.6.0)
ZUUL_BRANCH="stable/kilo"
;;
cdh_5.3.0)
ZUUL_BRANCH="stable/kilo"
;;
spark_1.0.0)
ZUUL_BRANCH="stable/kilo"
;;
esac
fi
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"