summaryrefslogtreecommitdiff
path: root/gitlab-ci
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab-ci')
-rwxr-xr-xgitlab-ci/clientdata/deploy.sh26
-rwxr-xr-xgitlab-ci/clientdata/testxml.sh26
-rwxr-xr-xgitlab-ci/failaction.sh38
-rwxr-xr-xgitlab-ci/init.sh22
-rwxr-xr-xgitlab-ci/susseccaction.sh45
5 files changed, 0 insertions, 157 deletions
diff --git a/gitlab-ci/clientdata/deploy.sh b/gitlab-ci/clientdata/deploy.sh
deleted file mode 100755
index 1ec39f8..0000000
--- a/gitlab-ci/clientdata/deploy.sh
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/bash
-
-source ./tools/gitlab-ci/init.sh
-
-clientdata_init
-
-rm -rf public
-mkdir public
-
-cd ..
-ln -s clientdata client-data
-
-rm -rf music
-gitclone https://gitlab.com/evol/evol-music.git music
-
-cd tools/update
-
-./createnew.sh
-./create_music.sh
-
-cp -r upload/* ../../clientdata/public
-cd ../../clientdata
-gitclone https://gitlab.com/4144/pagesindexgen.git pagesindexgen
-cd pagesindexgen
-./pagesindexgen.py ../public
-ls ../public
diff --git a/gitlab-ci/clientdata/testxml.sh b/gitlab-ci/clientdata/testxml.sh
deleted file mode 100755
index 9295ec3..0000000
--- a/gitlab-ci/clientdata/testxml.sh
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/bash
-
-source ./tools/gitlab-ci/init.sh
-
-clientdata_init
-
-cd tools/testxml
-
-./xsdcheck.sh
-export RES=$(cat errors.txt)
-if [[ -n "${RES}" ]]; then
- echo "xml check failed" >../../clientdata/shared/error.log
- echo ${RES} >>../../clientdata/shared/error.log
- cat ../../clientdata/shared/error.log
- exit 1
-fi
-
-echo >../../clientdata/shared/error.log
-./testxml.py silent >../../clientdata/shared/error.log
-if [ "$?" != 0 ]; then
- echo "test xml error"
- cat ../../clientdata/shared/error.log
- exit 1
-fi
-
-echo >../../clientdata/shared/error.log
diff --git a/gitlab-ci/failaction.sh b/gitlab-ci/failaction.sh
deleted file mode 100755
index 1771cf8..0000000
--- a/gitlab-ci/failaction.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/bash
-
-export path="bot"
-export server="irc.freenode.net"
-export channel="#evol-dev"
-export nick="evolbuildbot"
-export buildid="$(cat clientdata/shared/buildid.log)"
-export error="$(cat clientdata/shared/error.log)"
-export C="\0003"
-export R="\x0f"
-export name="client-data"
-
-cd clientdata
-export gitcommit=$(echo ${CI_BUILD_REF} | cut -c 1-7)
-export msg="[${C}02${name}:${CI_BUILD_REF_NAME}${R}] Build success: ${C}03${gitcommit}${R}. See https://gitlab.com/evol/clientdata/builds"
-
-echo "${msg}"
-
-mkdir ${path}
-
-ii -s ${server} -i ${path} -n ${nick} -f ${nick} &
-sleep 5s
-
-echo "/j ${channel}" > "${path}/${server}/in"
-sleep 10s
-
-echo -e ${msg} >${path}/${server}/${channel}/in
-#if [[ -n "${error}" ]]; then
-# sleep 2s
-# export LINK=$(pastebinit -b http://paste.ubuntu.com/ shared/error.log)
-# echo "Error log: ${LINK}" >${path}/${server}/${channel}/in
-#fi
-sleep 5s
-
-#rm -rf shared/buildid.log
-#rm -rf shared/error.log
-
-killall ii
diff --git a/gitlab-ci/init.sh b/gitlab-ci/init.sh
deleted file mode 100755
index f8831c3..0000000
--- a/gitlab-ci/init.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-function gitclone {
- git clone $*
- if [ "$?" != 0 ]; then
- sleep 1s
- git clone $*
- if [ "$?" != 0 ]; then
- sleep 3s
- git clone $*
- fi
- fi
-}
-
-function clientdata_init {
- cd clientdata
- mkdir shared
- echo >shared/error.log
- echo ${CI_BUILD_ID} >shared/buildid.log
-}
-
-ln -s clientdata client-data
diff --git a/gitlab-ci/susseccaction.sh b/gitlab-ci/susseccaction.sh
deleted file mode 100755
index 4819a35..0000000
--- a/gitlab-ci/susseccaction.sh
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/bash
-
-export path="bot"
-export server="irc.freenode.net"
-export channel="#evol-dev"
-export nick="evolbuildbot"
-export buildid="$(cat clientdata/shared/buildid.log)"
-export error="$(cat clientdata/shared/error.log)"
-export C="\0003"
-export R="\x0f"
-export name="client-data"
-
-cd clientdata
-export gitcommit=$(echo ${CI_BUILD_REF} | cut -c 1-7)
-export msg1="[${C}02${name}:${CI_BUILD_REF_NAME}${R}] Build success: ${C}03${gitcommit}${R}. See https://gitlab.com/evol/clientdata/builds/${buildid}"
-export msg2="[${C}02${name}:${CI_BUILD_REF_NAME}${R}] Build failed: ${C}03${gitcommit}${R}. See https://gitlab.com/evol/clientdata/builds/${buildid}"
-
-echo "${msg}"
-
-mkdir ${path}
-
-ii -s ${server} -i ${path} -n ${nick} -f ${nick} &
-sleep 5s
-
-echo "/j ${channel}" > "${path}/${server}/in"
-sleep 10s
-
-if [[ -n "${error}" ]]; then
- echo -e ${msg2} >${path}/${server}/${channel}/in
- sleep 2s
- export LINK=$(pastebinit -b http://paste.ubuntu.com/ shared/error.log)
- echo "Error log: ${LINK}" >${path}/${server}/${channel}/in
- rm -rf shared/buildid.log
- rm -rf shared/error.log
- exit 1
-else
- echo -e ${msg1} >${path}/${server}/${channel}/in
-fi
-
-sleep 3s
-
-rm -rf shared/buildid.log
-rm -rf shared/error.log
-
-killall ii