From ebb839206d2e8e482718af64ada4dafb3bc82556 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 14 Apr 2016 20:30:45 +0300 Subject: Remove gitlab ci irc scripts hack, because now we using hooks hack :) --- .gitlab-ci.yml | 4 ++-- tools/ci/jobs/failure.sh | 20 -------------------- tools/ci/jobs/success.sh | 19 ------------------- tools/ci/scripts/bot.sh | 27 --------------------------- 4 files changed, 2 insertions(+), 68 deletions(-) delete mode 100755 tools/ci/jobs/failure.sh delete mode 100755 tools/ci/jobs/success.sh delete mode 100755 tools/ci/scripts/bot.sh diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 28cde97a2..d7bc7be07 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -355,13 +355,13 @@ mplint_data: success: stage: success script: - - ./tools/ci/jobs/success.sh + - echo "do nothing" image: debian:unstable when: on_success failure: stage: failure script: - - ./tools/ci/jobs/failure.sh + - echo "do nothing" image: debian:unstable when: on_failure 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 -} -- cgit v1.2.3-70-g09d2