diff options
author | Chris Evich <cevich@redhat.com> | 2018-10-15 17:29:20 -0400 |
---|---|---|
committer | Chris Evich <cevich@redhat.com> | 2018-10-18 12:33:36 -0400 |
commit | a50410467ac7db98b02fc936c8cac7c5b8229f22 (patch) | |
tree | 92c354ca8c34fcdd9e0c676158a4f635504fa8a9 /contrib/cirrus/lib.sh | |
parent | a75a888640efcbecdf80caac3004957d6b0752ed (diff) | |
download | podman-a50410467ac7db98b02fc936c8cac7c5b8229f22.tar.gz podman-a50410467ac7db98b02fc936c8cac7c5b8229f22.tar.bz2 podman-a50410467ac7db98b02fc936c8cac7c5b8229f22.zip |
cirrus: Add simple IRC messenger
Add a naive python script that's able to connect to IRC and send a
single line of text to the #podman channel. Wrap this in a new
library function to ensure nick-name collisions are unlikely.
Signed-off-by: Chris Evich <cevich@redhat.com>
Diffstat (limited to 'contrib/cirrus/lib.sh')
-rw-r--r-- | contrib/cirrus/lib.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/contrib/cirrus/lib.sh b/contrib/cirrus/lib.sh index e69f1e040..098aded0a 100644 --- a/contrib/cirrus/lib.sh +++ b/contrib/cirrus/lib.sh @@ -93,6 +93,19 @@ stub() { echo "STUB: Pretending to do $1" } +ircmsg() { + req_env_var " + SCRIPT_BASE $SCRIPT_BASE + GOSRC $GOSRC + CIRRUS_TASK_ID $CIRRUS_TASK_ID + 1 $1 + " + SCRIPT="$GOSRC/$SCRIPT_BASE/podbot.py" + NICK="podbot_$CIRRUS_TASK_ID" + NICK="${NICK:0:15}" # Any longer will break things + $SCRIPT $NICK $1 +} + # Run sudo in directory with GOPATH set cdsudo() { DIR="$1" |