summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-01-24 22:38:04 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-24 22:38:04 +0300
commit870a88b843de846818681a2312453b98eee01c1f (patch)
tree11f05601b6c26c68a6b07438407a8c90802d7a09
parentc825ec243e728de26029850c2431e4e6559a3756 (diff)
downloadspm-870a88b843de846818681a2312453b98eee01c1f.tar.gz
spm-870a88b843de846818681a2312453b98eee01c1f.tar.bz2
spm-870a88b843de846818681a2312453b98eee01c1f.tar.xz
spm-870a88b843de846818681a2312453b98eee01c1f.zip
In ci scripts install missing packages.
-rwxr-xr-x.ci/install.sh12
-rw-r--r--.gitlab-ci.yml1
2 files changed, 13 insertions, 0 deletions
diff --git a/.ci/install.sh b/.ci/install.sh
new file mode 100755
index 0000000..a880ce5
--- /dev/null
+++ b/.ci/install.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+if [ "$RUNFROMSHELL" != "" ];
+then
+ echo "Running from shell. Skipping apt-get install"
+ return
+fi
+
+echo "apt-get update"
+../.ci/retry.sh apt-get update
+echo "apt-get -y -qq install git-core bash"
+../.ci/retry.sh apt-get -y -qq install $*
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 57148cc..24ca6d9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,6 +14,7 @@ before_script:
test:getsrc:
stage: test
script:
+ - ./.ci/install.sh git-core bash
- ./.ci/run.sh ./getsrc.sh zlib
image: debian:unstable
<<: *job-artifacts