diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-03-30 21:28:23 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-04-05 13:15:19 +0000 |
commit | 60238ff6aad2e14870bab1c7adee633976571423 (patch) | |
tree | 42859a242fbc96f17abe26b8daedf00f7eaf52e4 /.travis/install-alpine | |
parent | 3962c0d948aa2ba5cc3820aea8cf685794a42e5b (diff) | |
download | aports-60238ff6aad2e14870bab1c7adee633976571423.tar.bz2 aports-60238ff6aad2e14870bab1c7adee633976571423.tar.xz |
Set up Travis to build modified packages
Diffstat (limited to '.travis/install-alpine')
-rwxr-xr-x | .travis/install-alpine | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/.travis/install-alpine b/.travis/install-alpine new file mode 100755 index 0000000000..fac726c2f8 --- /dev/null +++ b/.travis/install-alpine @@ -0,0 +1,33 @@ +#!/bin/sh +# vim: set ts=4: +set -eu + +. "$(dirname "$0")"/common.sh + +APK_TOOLS_URI='https://repository.fit.cvut.cz/mirrors/alpine/v3.3/main/x86_64/apk-tools-static-2.6.5-r1.apk' +APK_TOOLS_SHA256='03162d70e6d42eea77624a8da76d69e665ca19aa834361c3652414f111884636' + + +title 'Downloading apk-tools-static' + +cd /tmp +wget "$APK_TOOLS_URI" +echo "$APK_TOOLS_SHA256 $(basename "$APK_TOOLS_URI")" | sha256sum -c +tar -xzf $(basename "$APK_TOOLS_URI") + + +title 'Installing Alpine Linux' + +mkdir -p "$ALPINE_ROOT"/etc/apk +cd "$ALPINE_ROOT" + +cp "$CLONE_DIR"/.travis/repositories etc/apk/repositories +cp /etc/resolv.conf etc/resolv.conf + +/tmp/sbin/apk.static \ + --root . --allow-untrusted --update-cache --initdb --no-progress \ + add alpine-base + +mount -t proc none proc +mount --rbind /sys sys +mount --rbind /dev dev |