diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-12-06 16:43:40 +0000 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2023-11-20 13:21:20 +0000 |
commit | 6fb96d70fc8eae5cf4db9317ba75da41b4f870f5 (patch) | |
tree | 17fd87632808f3e192cc15d66f311ed98b332e0e | |
parent | 0ce5447c2f671fdba2f43536b4aa225780e93d11 (diff) |
notify: Add IRC notifiers
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rwxr-xr-x | common.sh | 3 | ||||
-rwxr-xr-x | integration-tests.sh | 2 | ||||
-rwxr-xr-x | notify.sh | 9 | ||||
-rwxr-xr-x | release.sh | 1 |
4 files changed, 15 insertions, 0 deletions
@@ -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 @@ -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 "$@" |