Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ai3
tools
tabacco
Commits
8883c878
Commit
8883c878
authored
Aug 06, 2018
by
ale
Browse files
Use curl to download restic in CI script
parent
c743d426
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
8883c878
...
...
@@ -11,6 +11,7 @@ test:
stage
:
test
image
:
"
ai/test:go"
script
:
-
"
apt-get
install
-qy
curl"
-
"
./install_restic_for_tests.sh"
-
"
go-test-runner
."
except
:
...
...
@@ -30,6 +31,7 @@ build:pkg:
stage
:
build_pkg
image
:
"
ai/build:stretch"
script
:
-
"
apt-get
install
-qy
curl"
-
"
./install_restic_for_tests.sh"
-
"
build-dsc"
dependencies
:
...
...
install_restic_for_tests.sh
View file @
8883c878
...
...
@@ -16,7 +16,7 @@ DOWNLOAD_URL="https://github.com/restic/restic/releases/download/v${RESTIC_VERSI
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
exit
0
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment