Commit 8883c878 authored by ale's avatar ale

Use curl to download restic in CI script

parent c743d426
Pipeline #1121 failed with stages
in 25 seconds
...@@ -11,6 +11,7 @@ test: ...@@ -11,6 +11,7 @@ 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:
...@@ -30,6 +31,7 @@ build:pkg: ...@@ -30,6 +31,7 @@ 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-dsc" - "build-dsc"
dependencies: dependencies:
......
...@@ -16,7 +16,7 @@ DOWNLOAD_URL="https://github.com/restic/restic/releases/download/v${RESTIC_VERSI ...@@ -16,7 +16,7 @@ DOWNLOAD_URL="https://github.com/restic/restic/releases/download/v${RESTIC_VERSI
set -e set -e
wget -O- -nv "${DOWNLOAD_URL}" | bunzip2 -c > /usr/bin/restic curl -s "${DOWNLOAD_URL}" | bunzip2 -c > /usr/bin/restic
chmod +x /usr/bin/restic chmod +x /usr/bin/restic
exit 0 exit 0
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