30
-1
-1
-1
false
false
centos-demo
false
false
false
false
true
#!/bin/bash -x
if [[ ! -e compass-core ]]; then
git clone https://git.openstack.org/stackforge/compass-core
else
cd compass-core
git remote set-url origin https://git.openstack.org/stackforge/compass-core
git remote update
git reset --hard
git clean -x -f -d -q
git checkout master
git reset --hard remotes/origin/dev/experimental
git clean -x -f -d -q
cd ..
fi
cd compass-core
if [[ ! -z $ZUUL_REF || ! -z $GERRIT_REFSPEC ]]; then
if [[ ! -z $ZUUL_REF ]]; then
git_repo=$ZUUL_URL/stackforge/compass-core
git_ref=$ZUUL_REF
git_branch=$ZUUL_BRANCH
elif [[ ! -z $GERRIT_REFSPEC ]]; then
git_repo=https://$GERRIT_HOST/stackforge/compass-core
git_ref=$GERRIT_REFSPEC
git_branch=$GERRIT_BRANCH
fi
git reset --hard remotes/origin/$git_branch
git fetch $git_repo $git_ref && git checkout FETCH_HEAD
if [ $? -ne 0 ]; then
echo "failed to git fetch $git_repo $git_ref or no ref for this project"
fi
git clean -x -f
fi
export GERRIT_BRANCH=master
export GERRIT_HOST=review.openstack.org
export GERRIT_REFSPEC=refs/changes/45/113045/2
cp compass-core/misc/ci/*.sh .
export tempest=true
./test-install.sh
ci_log_server
$LOG_PATH
true
true
true
$LOG_PATH
cobbler_logs/**
true
false
true
$LOG_PATH
compass_logs/compass.log
true
false
true
$LOG_PATH
compass_logs/*.py
true
false
true