summaryrefslogtreecommitdiff
path: root/.ci
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-01-24 22:24:09 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-24 22:24:09 +0300
commitc825ec243e728de26029850c2431e4e6559a3756 (patch)
tree7db1c8514a7b015453273791a46a280753ca9883 /.ci
parentd5810b8baee3a3670210e01535485543aab3d274 (diff)
downloadspm-c825ec243e728de26029850c2431e4e6559a3756.tar.gz
spm-c825ec243e728de26029850c2431e4e6559a3756.tar.bz2
spm-c825ec243e728de26029850c2431e4e6559a3756.tar.xz
spm-c825ec243e728de26029850c2431e4e6559a3756.zip
Add .gitlab-ci.yml with check for script getsrc.
Diffstat (limited to '.ci')
-rwxr-xr-x.ci/retry.sh15
-rwxr-xr-x.ci/run.sh4
2 files changed, 19 insertions, 0 deletions
diff --git a/.ci/retry.sh b/.ci/retry.sh
new file mode 100755
index 0000000..aaa50e9
--- /dev/null
+++ b/.ci/retry.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+n=0
+
+while true; do
+ $*
+ if [ "$?" == 0 ]; then
+ exit 0
+ fi
+ if [[ $n -ge 10 ]]; then
+ exit -1
+ fi
+ sleep 5s
+ n=$((n+1))
+done
diff --git a/.ci/run.sh b/.ci/run.sh
new file mode 100755
index 0000000..443611d
--- /dev/null
+++ b/.ci/run.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+cd scripts
+../.ci/retry.sh $*