Merge "don't spend hours testing things with WIP in the title"

This commit is contained in:
Zuul 2017-10-02 19:27:25 +00:00 committed by Gerrit Code Review
commit fff5bdb1d4

View File

@ -1,6 +1,16 @@
#!/bin/bash
set -eu
if [[ $GERRIT_CHANGE_SUBJECT == "WIP "* ]] || [[ $GERRIT_CHANGE_SUBJECT == "wip "* ]]; then
echo "Commit is a work in progress, short circuiting"
exit 1
fi
if [[ $GERRIT_CHANGE_SUBJECT == "WIP: "* ]] || [[ $GERRIT_CHANGE_SUBJECT == "wip: "* ]]; then
echo "Commit is a work in progress, short circuiting"
exit 1
fi
pushd $WORKSPACE/tripleo-quickstart
sed -i.bak '/extras/d' $WORKSPACE/tripleo-quickstart/quickstart-extras-requirements.txt
echo "file://$WORKSPACE/tripleo-quickstart-extras/#egg=tripleo-quickstart-extras" >> $WORKSPACE/tripleo-quickstart/quickstart-extras-requirements.txt