From 726151d24373e294509af8fd46b7a8383a42780d Mon Sep 17 00:00:00 2001 From: Chris Frey Date: Thu, 10 Feb 2011 22:02:19 -0500 Subject: [PATCH] scripts: added script to build a sequence of commits, one after another For testing. --- sequence-buildtest.sh | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100755 sequence-buildtest.sh diff --git a/sequence-buildtest.sh b/sequence-buildtest.sh new file mode 100755 index 00000000..42730347 --- /dev/null +++ b/sequence-buildtest.sh @@ -0,0 +1,39 @@ +#!/bin/sh + +set -e + +if [ -z "$1" ] ; then + echo "Usage:" + echo " sequence-buildtest.sh " + echo + echo "Example:" + echo " sequence-buildtest.sh master..desktop" + echo + exit 1 +fi + +if [ ! -f ./buildtest.sh ] ; then + echo "Please run this from inside the barry/test directory." + exit 1 +fi + +DONEFILE="/tmp/sequence-buildtest-done.txt" + +if [ -f "$DONEFILE" ] ; then + echo "NOTE: $DONEFILE already exists..." + echo "Will continue with current status in 5 seconds..." + sleep 5s +fi + +COMMITS=$(git rev-list --reverse "$1") + +for commit in $COMMITS ; do + if ! grep "$commit" "$DONEFILE" ; then + git checkout "$commit" + ./buildtest.sh + echo "$commit" >> "$DONEFILE" + else + echo "Skipping: $commit..." + fi +done + -- 2.11.4.GIT