summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2017-10-27 18:08:34 +0100
committerDaniel Lezcano <daniel.lezcano@linaro.org>2017-10-27 18:11:38 +0100
commit152f96e0d78154d4c505e2eb378460ed5bdfec02 (patch)
tree7d484abc63708aa42418840ade6cf4c765cd4136
parent10c8c70c63e9342bbbbfbfab97a2770d8668cd1b (diff)
pmwg-ci: Add the track option
We want to track the changes on HEAD or on the latest tag change. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
-rwxr-xr-xpmwg-ci-integ12
1 files changed, 12 insertions, 0 deletions
diff --git a/pmwg-ci-integ b/pmwg-ci-integ
index 5090333..5bff3d8 100755
--- a/pmwg-ci-integ
+++ b/pmwg-ci-integ
@@ -93,6 +93,9 @@ BASELINE="baseline"
# The baseline branch defaulting to 'master'
BASELINE_BRANCH=master
+# Track the tag or HEAD changes
+TRACK=tag
+
# Use pushd here so when the script exits, the CWD will automatically
# be the initial one before calling this script.
pushd $LOCAL_REPO
@@ -123,6 +126,7 @@ Help() {
echo " -r|--remote <url> : URL to the remote repository [$REMOTE_REPO]"
echo " -b|--baseline <name> : Baseline name [$BASELINE]"
echo " -i|--integ <name> : Integration branch name [$INTEG_BRANCH]"
+ echo " -t|--track tag|head changes on the latest tag or HED on branc [$TRACK]"
echo
}
@@ -172,6 +176,14 @@ options_setup() {
BASELINE=$1
;;
+ --track|-t)
+ if [ "$1" = "tag" -o "$1" = "head" ]; then
+ TRACK=$1
+ else
+ echo "Bad tracking keyword"
+ fi
+ ;;
+
--integ|-i)
INTEG_BRANCH=$1
;;