diff options
Diffstat (limited to 'tools/ci')
-rwxr-xr-x | tools/ci/jobs/failure.sh | 20 | ||||
-rwxr-xr-x | tools/ci/jobs/success.sh | 19 | ||||
-rwxr-xr-x | tools/ci/scripts/bot.sh | 27 |
3 files changed, 0 insertions, 66 deletions
diff --git a/tools/ci/jobs/failure.sh b/tools/ci/jobs/failure.sh deleted file mode 100755 index 8ee3be3cf..000000000 --- a/tools/ci/jobs/failure.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash - -export LOGFILE=bot.log -export name="ManaPlus" - -source ./tools/ci/scripts/init.sh -source ./tools/ci/scripts/bot.sh - -aptget_install ii psmisc - -bot_connect "manaplusbot2" -bot_join "#manaplus" - -export gitcommit=$(echo ${CI_BUILD_REF} | cut -c 1-7) - -bot_message "#manaplus" "[${C}02${name}:${CI_BUILD_REF_NAME}${R}] Build failed: ${C}03${gitcommit}${R}. See https://gitlab.com/manaplus/manaplus/builds" -bot_message "#manaplus" "hightlight {41444d494e}" -bot_exit - -exit 0 diff --git a/tools/ci/jobs/success.sh b/tools/ci/jobs/success.sh deleted file mode 100755 index 74d15a3ba..000000000 --- a/tools/ci/jobs/success.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash - -export LOGFILE=bot.log -export name="ManaPlus" - -source ./tools/ci/scripts/init.sh -source ./tools/ci/scripts/bot.sh - -aptget_install ii psmisc - -bot_connect "manaplusbot2" -bot_join "#manaplus" - -export gitcommit=$(echo ${CI_BUILD_REF} | cut -c 1-7) - -bot_message "#manaplus" "[${C}02${name}:${CI_BUILD_REF_NAME}${R}] Build success: ${C}03${gitcommit}${R}. See https://gitlab.com/manaplus/manaplus/builds" -bot_exit - -exit 0 diff --git a/tools/ci/scripts/bot.sh b/tools/ci/scripts/bot.sh deleted file mode 100755 index 4724530a8..000000000 --- a/tools/ci/scripts/bot.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - -export path=bot -export server=irc.freenode.net -export C="\0003" -export R="\x0f" - -function bot_connect { - mkdir ${path} - ii -s $server -i $path -n $1 -f $1 & - sleep 7s -} - -function bot_join { - echo "/j $1" > "$path/$server/in" - sleep 7s -} - -function bot_message { - echo -e $2 >bot/irc.freenode.net/${1}/in - sleep 1s -} - -function bot_exit { - sleep 5s - killall ii -} |