diff options
-rwxr-xr-x | .ci/install.sh | 12 | ||||
-rw-r--r-- | .gitlab-ci.yml | 1 |
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 |