aboutsummaryrefslogtreecommitdiffstats
path: root/.travis/install-alpine
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-06-23 21:16:16 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-06-23 21:16:16 +0200
commit68d10557f185fb83fe8297b7d73d93db72545bc2 (patch)
tree50f9b211cdca28c66253ef03a120c189e6446b7d /.travis/install-alpine
parent602d241ba44395afe2d976c264c3f6328ee6dc82 (diff)
downloadaports-68d10557f185fb83fe8297b7d73d93db72545bc2.tar.gz
aports-68d10557f185fb83fe8297b7d73d93db72545bc2.tar.bz2
aports-68d10557f185fb83fe8297b7d73d93db72545bc2.tar.xz
travis: fetch static apk-tools from GitHub instead of aports
Diffstat (limited to '.travis/install-alpine')
-rwxr-xr-x.travis/install-alpine15
1 files changed, 8 insertions, 7 deletions
diff --git a/.travis/install-alpine b/.travis/install-alpine
index b4607f8a09..61094159a6 100755
--- a/.travis/install-alpine
+++ b/.travis/install-alpine
@@ -4,16 +4,17 @@ set -eu
. "$(dirname "$0")"/common.sh
-APK_TOOLS_URI='http://nl.alpinelinux.org/alpine/v3.5/main/x86_64/apk-tools-static-2.6.8-r2.apk'
-APK_TOOLS_SHA256='e163b7d67e81946d67abb8bb1da3449792b52ad872d3b59967f90d445b50784f'
+APK_TOOLS_URI='https://github.com/alpinelinux/apk-tools/releases/download/v2.7.2/apk-tools-2.7.2-x86_64-linux.tar.gz'
+APK_TOOLS_SHA256='e949d3826d08ad41622b29186f960b135711dd96aacfb80ff8238c0fd69d051f'
-title 'Downloading apk-tools-static'
+title 'Downloading static apk-tools'
cd /tmp
-wget "$APK_TOOLS_URI"
-echo "$APK_TOOLS_SHA256 $(basename "$APK_TOOLS_URI")" | sha256sum -c
-tar -xzf $(basename "$APK_TOOLS_URI")
+wget -T 10 "$APK_TOOLS_URI"
+echo "$APK_TOOLS_SHA256 ${APK_TOOLS_URI##*/})" | sha256sum -c
+tar -xzf ${APK_TOOLS_URI##*/}
+mv apk-tools-*/apk apk
title 'Installing Alpine Linux'
@@ -25,7 +26,7 @@ echo "$MIRROR_URI/main" > etc/apk/repositories
cp -R "$CLONE_DIR"/.travis/keys etc/apk/keys
cp /etc/resolv.conf etc/resolv.conf
-/tmp/sbin/apk.static \
+/tmp/apk \
--root . --update-cache --initdb --no-progress \
add alpine-base