Commit 03808f7b authored by ale's avatar ale

Install "curl" directly in the test wrapper

parent 71b66104
Pipeline #2533 failed with stages
in 8 seconds
.random_seed
...@@ -11,7 +11,6 @@ test: ...@@ -11,7 +11,6 @@ test:
stage: test stage: test
image: "ai/test:go" image: "ai/test:go"
script: script:
- "apt-get install -qy curl"
- "./install_restic_for_tests.sh" - "./install_restic_for_tests.sh"
- "go-test-runner ." - "go-test-runner ."
except: except:
...@@ -31,7 +30,6 @@ build:pkg: ...@@ -31,7 +30,6 @@ build:pkg:
stage: build_pkg stage: build_pkg
image: "ai/build:stretch" image: "ai/build:stretch"
script: script:
- "apt-get install -qy curl"
- "./install_restic_for_tests.sh" - "./install_restic_for_tests.sh"
- "build-deb" - "build-deb"
dependencies: dependencies:
......
...@@ -18,6 +18,7 @@ DOWNLOAD_URL="https://github.com/restic/restic/releases/download/v${RESTIC_VERSI ...@@ -18,6 +18,7 @@ DOWNLOAD_URL="https://github.com/restic/restic/releases/download/v${RESTIC_VERSI
set -e set -e
set -x set -x
test -x /usr/bin/curl || apt-get -qy install curl
curl -sL "${DOWNLOAD_URL}" | bunzip2 -c > /usr/bin/restic curl -sL "${DOWNLOAD_URL}" | bunzip2 -c > /usr/bin/restic
chmod +x /usr/bin/restic chmod +x /usr/bin/restic
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment