Skip to content

Commit

Permalink
don't spend hours testing things with WIP in the title
Browse files Browse the repository at this point in the history
So this is very easy, the problem is determining if the user
actually intended to mark their commit as a work in progress
for no testing, or if the user has WIP in their commit title
for some other reason. To help with that WIP or wip has to
be at the start of the commit message and have a trailing space.
Maybe : should also be accepted as a trailing char.

Change-Id: Ic44114dbf50abbe2a9f135a41257208fe7feddf8
  • Loading branch information
jkilpatr committed Sep 27, 2017
1 parent 5b45ce3 commit dfdcda1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ci-scripts/tripleo/microbrow.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit dfdcda1

Please sign in to comment.