diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-14 20:30:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-14 20:30:45 +0300 |
commit | ebb839206d2e8e482718af64ada4dafb3bc82556 (patch) | |
tree | 37756abb7b1c2db0ca54eebb8b1d5aa9c1ec01bb | |
parent | 8d3bbab79c733c7f8c5a685e8243889a250d64c8 (diff) | |
download | plus-ebb839206d2e8e482718af64ada4dafb3bc82556.tar.gz plus-ebb839206d2e8e482718af64ada4dafb3bc82556.tar.bz2 plus-ebb839206d2e8e482718af64ada4dafb3bc82556.tar.xz plus-ebb839206d2e8e482718af64ada4dafb3bc82556.zip |
Remove gitlab ci irc scripts hack, because now we using hooks hack :)
-rw-r--r-- | .gitlab-ci.yml | 4 | ||||
-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 |
4 files changed, 2 insertions, 68 deletions
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 -} |