summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-08 17:57:19 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-08 18:00:20 +0300
commit69b621ff63f59b34688ef85b83517284d541358f (patch)
tree51920455166d6d331757d4143f216247dd5ab6db
parent44c60a51d7bd7fd54726b7435a2373956a0e00c5 (diff)
downloadtools-69b621ff63f59b34688ef85b83517284d541358f.tar.gz
tools-69b621ff63f59b34688ef85b83517284d541358f.tar.bz2
tools-69b621ff63f59b34688ef85b83517284d541358f.tar.xz
tools-69b621ff63f59b34688ef85b83517284d541358f.zip
add gitlab ci scripts.
-rwxr-xr-xgitlab-ci/clientdata.sh18
-rwxr-xr-xgitlab-ci/completeaction.sh24
2 files changed, 42 insertions, 0 deletions
diff --git a/gitlab-ci/clientdata.sh b/gitlab-ci/clientdata.sh
new file mode 100755
index 0000000..deee2fb
--- /dev/null
+++ b/gitlab-ci/clientdata.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+cd clientdata
+rm -rf public
+mkdir public
+
+cd ..
+ln -s clientdata client-data
+
+rm -rf music
+git clone --depth 1 https://gitlab.com/evol/evol-music.git music
+
+cd tools/update
+./createnew.sh
+./create_music.sh
+
+cp -r upload/* ../../clientdata/public
+ls ../../clientdata/public
diff --git a/gitlab-ci/completeaction.sh b/gitlab-ci/completeaction.sh
new file mode 100755
index 0000000..a20a64e
--- /dev/null
+++ b/gitlab-ci/completeaction.sh
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+export path="bot"
+export server="irc.freenode.net"
+export channel="#evol-dev"
+export nick="evolbuildbot"
+
+echo "$1"
+
+apt-get update
+apt-get -y -qq install ii psmisc
+
+mkdir ${path}
+
+ii -s ${server} -i ${path} -n ${nick} -f ${nick} &
+sleep 5s
+
+echo "/j ${channel}" > "${path}/${server}/in"
+sleep 10s
+
+echo $1 >${path}/${server}/${channel}/in
+sleep 3s
+
+killall ii