summaryrefslogtreecommitdiff
path: root/.travis/install
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-04-28 23:49:42 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-04-28 23:49:42 -0500
commit61612b4e97dfda68146bc0d7883027dc5e8c0409 (patch)
tree1dd2eb2a79dadba24052a8072a3d40d62d67dc09 /.travis/install
parent3e5650b644bd52610831bec8b9f105d3468caec4 (diff)
downloadgcompat-61612b4e97dfda68146bc0d7883027dc5e8c0409.tar.gz
gcompat-61612b4e97dfda68146bc0d7883027dc5e8c0409.tar.bz2
gcompat-61612b4e97dfda68146bc0d7883027dc5e8c0409.tar.xz
gcompat-61612b4e97dfda68146bc0d7883027dc5e8c0409.zip
First attempt at CI
Diffstat (limited to '.travis/install')
-rw-r--r--.travis/install22
1 files changed, 22 insertions, 0 deletions
diff --git a/.travis/install b/.travis/install
new file mode 100644
index 0000000..87996af
--- /dev/null
+++ b/.travis/install
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+. $(dirname $0)/config
+
+curl -O https://mirrormaster.adelielinux.org/adelie/apk-tools-static/x86_64.apk
+tar -xzOf x86_64.apk sbin/apk.static > /tmp/apk.static
+
+mkdir -p "$NEWROOT"/etc/apk
+/tmp/apk.static -X "https://mirrormaster.adelielinux.org/adelie/current/system" --root "$NEWROOT" --initdb --no-progress add adelie-core bash-binsh musl-dev gcc binutils
+
+pushd "$NEWROOT"
+
+mount -t proc none proc
+mount -t sysfs none sys
+mount -R /dev dev
+mount -R /run run
+ln -s /run/shm dev/shm
+mkdir ./$CLONE_DIR
+mount -B $CLONE_DIR ./$CLONE_DIR
+useradd -m -c "Travis User" -s /bin/sh -G wheel -u $SUDO_UID $SUDO_USER
+
+popd