diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-06-23 21:16:16 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-06-23 21:16:16 +0200 |
commit | 68d10557f185fb83fe8297b7d73d93db72545bc2 (patch) | |
tree | 50f9b211cdca28c66253ef03a120c189e6446b7d /.travis | |
parent | 602d241ba44395afe2d976c264c3f6328ee6dc82 (diff) | |
download | alpine_aports-68d10557f185fb83fe8297b7d73d93db72545bc2.tar.bz2 alpine_aports-68d10557f185fb83fe8297b7d73d93db72545bc2.tar.xz alpine_aports-68d10557f185fb83fe8297b7d73d93db72545bc2.zip |
travis: fetch static apk-tools from GitHub instead of aports
Diffstat (limited to '.travis')
-rwxr-xr-x | .travis/install-alpine | 15 |
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 | |||
4 | 4 | ||
5 | . "$(dirname "$0")"/common.sh | 5 | . "$(dirname "$0")"/common.sh |
6 | 6 | ||
7 | APK_TOOLS_URI='http://nl.alpinelinux.org/alpine/v3.5/main/x86_64/apk-tools-static-2.6.8-r2.apk' | 7 | APK_TOOLS_URI='https://github.com/alpinelinux/apk-tools/releases/download/v2.7.2/apk-tools-2.7.2-x86_64-linux.tar.gz' |
8 | APK_TOOLS_SHA256='e163b7d67e81946d67abb8bb1da3449792b52ad872d3b59967f90d445b50784f' | 8 | APK_TOOLS_SHA256='e949d3826d08ad41622b29186f960b135711dd96aacfb80ff8238c0fd69d051f' |
9 | 9 | ||
10 | 10 | ||
11 | title 'Downloading apk-tools-static' | 11 | title 'Downloading static apk-tools' |
12 | 12 | ||
13 | cd /tmp | 13 | cd /tmp |
14 | wget "$APK_TOOLS_URI" | 14 | wget -T 10 "$APK_TOOLS_URI" |
15 | echo "$APK_TOOLS_SHA256 $(basename "$APK_TOOLS_URI")" | sha256sum -c | 15 | echo "$APK_TOOLS_SHA256 ${APK_TOOLS_URI##*/})" | sha256sum -c |
16 | tar -xzf $(basename "$APK_TOOLS_URI") | 16 | tar -xzf ${APK_TOOLS_URI##*/} |
17 | mv apk-tools-*/apk apk | ||
17 | 18 | ||
18 | 19 | ||
19 | title 'Installing Alpine Linux' | 20 | title 'Installing Alpine Linux' |
@@ -25,7 +26,7 @@ echo "$MIRROR_URI/main" > etc/apk/repositories | |||
25 | cp -R "$CLONE_DIR"/.travis/keys etc/apk/keys | 26 | cp -R "$CLONE_DIR"/.travis/keys etc/apk/keys |
26 | cp /etc/resolv.conf etc/resolv.conf | 27 | cp /etc/resolv.conf etc/resolv.conf |
27 | 28 | ||
28 | /tmp/sbin/apk.static \ | 29 | /tmp/apk \ |
29 | --root . --update-cache --initdb --no-progress \ | 30 | --root . --update-cache --initdb --no-progress \ |
30 | add alpine-base | 31 | add alpine-base |
31 | 32 | ||