From 6fb96d70fc8eae5cf4db9317ba75da41b4f870f5 Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Mon, 6 Dec 2021 16:43:40 +0000 Subject: notify: Add IRC notifiers Signed-off-by: Kieran Bingham --- common.sh | 3 +++ integration-tests.sh | 2 ++ notify.sh | 9 +++++++++ release.sh | 1 + 4 files changed, 15 insertions(+) create mode 100755 notify.sh diff --git a/common.sh b/common.sh index 63cb36a..09d9291 100755 --- a/common.sh +++ b/common.sh @@ -8,6 +8,8 @@ STAMPS=$(pwd)/stamps BUILDS=$(pwd)/builds SOURCES=$(pwd)/src +NOTIFY=$(pwd)/notify.sh + mkdir -p "$LOGS" mkdir -p "$STAMPS" mkdir -p "$BUILDS" @@ -103,6 +105,7 @@ notify_failures() { fi failure_report "$1" "$2" | sendmail kieran.bingham@ideasonboard.com + $NOTIFY "$1 has failed" } pass_fail() { diff --git a/integration-tests.sh b/integration-tests.sh index 033d1cb..dac6e03 100755 --- a/integration-tests.sh +++ b/integration-tests.sh @@ -11,6 +11,8 @@ source common.sh echo "Using Remote $REMOTE and branch $BRANCH" ./set-libcamera-branch.sh $REMOTE $BRANCH +$NOTIFY "Starting integration tests on $REMOTE:$BRANCH" + pass_fail $? "Merged branch $BRANCH" echo "Validate checkstyle on the branch" diff --git a/notify.sh b/notify.sh new file mode 100755 index 0000000..f08b304 --- /dev/null +++ b/notify.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +dir=`dirname $0` +echo $dir + +cd $dir + +./irc-perl-bot.pl "$@" > irc.log 2>&1 & +echo "$@" >> irc.log diff --git a/release.sh b/release.sh index d3f546b..fb9a1a6 100755 --- a/release.sh +++ b/release.sh @@ -23,5 +23,6 @@ git -C $LIBCAMERA checkout -b master git -C $LIBCAMERA push upstream master pass_fail $? "Push to master..." +$NOTIFY "Merged $@" ./remove-test-branch.sh "$@" -- cgit v1.2.1