From 61612b4e97dfda68146bc0d7883027dc5e8c0409 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 28 Apr 2019 23:49:42 -0500 Subject: First attempt at CI --- .travis.yml | 13 +++++++++++++ .travis/config | 4 ++++ .travis/install | 22 ++++++++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 .travis.yml create mode 100644 .travis/config create mode 100644 .travis/install diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..893b863 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,13 @@ +branches: + only: + - master +dist: xenial +sudo: required +language: minimal +install: + - sudo .travis/install +script: | + . .travis/config + sudo chroot $NEWROOT su -l $USER sh -c "cd $CLONE_DIR; make LINKER_PATH=/lib/ld-musl-x86_64.so.1 LOADER_NAME=ld-linux-x86-64.so.2" +notifications: + email: false diff --git a/.travis/config b/.travis/config new file mode 100644 index 0000000..3b63b13 --- /dev/null +++ b/.travis/config @@ -0,0 +1,4 @@ +#!/bin/sh + +declare -r NEWROOT=/srv/adelie + 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 -- cgit v1.2.3-70-g09d2