From 03808f7b55952f6cecbc1197f9c3eb2f8368e1f0 Mon Sep 17 00:00:00 2001 From: ale Date: Mon, 18 Mar 2019 20:38:34 +0000 Subject: [PATCH] Install "curl" directly in the test wrapper --- .gitignore | 1 + .gitlab-ci.yml | 2 -- install_restic_for_tests.sh | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e7a7260 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.random_seed diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bdd6a17..01f6048 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,7 +11,6 @@ test: stage: test image: "ai/test:go" script: - - "apt-get install -qy curl" - "./install_restic_for_tests.sh" - "go-test-runner ." except: @@ -31,7 +30,6 @@ build:pkg: stage: build_pkg image: "ai/build:stretch" script: - - "apt-get install -qy curl" - "./install_restic_for_tests.sh" - "build-deb" dependencies: diff --git a/install_restic_for_tests.sh b/install_restic_for_tests.sh index 9c40f6d..0d9bef2 100755 --- a/install_restic_for_tests.sh +++ b/install_restic_for_tests.sh @@ -18,6 +18,7 @@ DOWNLOAD_URL="https://github.com/restic/restic/releases/download/v${RESTIC_VERSI set -e set -x +test -x /usr/bin/curl || apt-get -qy install curl curl -sL "${DOWNLOAD_URL}" | bunzip2 -c > /usr/bin/restic chmod +x /usr/bin/restic -- GitLab