summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2021-12-06 16:43:40 +0000
committerKieran Bingham <kieran.bingham@ideasonboard.com>2023-11-20 13:21:20 +0000
commit6fb96d70fc8eae5cf4db9317ba75da41b4f870f5 (patch)
tree17fd87632808f3e192cc15d66f311ed98b332e0e
parent0ce5447c2f671fdba2f43536b4aa225780e93d11 (diff)
notify: Add IRC notifiers
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rwxr-xr-xcommon.sh3
-rwxr-xr-xintegration-tests.sh2
-rwxr-xr-xnotify.sh9
-rwxr-xr-xrelease.sh1
4 files changed, 15 insertions, 0 deletions
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 "$@"