--- /dev/null
+build
+covint
node {
checkout scm
stage('Build') {
- parallel fedora: {
-
+ fedora: {
sh "./autotest/fedora-latest/build.sh"
},
centos: {
opensuse: {
sh "./autotest/opensuse-leap/build.sh"
},
+ alpine: {
+ sh "./autotest/alpine-edge/build.sh"
+ }
debian: {
sh "./autotest/debian-latest/build.sh"
},
}
}
stage('Test') {
- parallel fedora: {
-
+ fedora: {
sh "./autotest/fedora-latest/test.sh"
},
centos: {
opensuse: {
sh "./autotest/opensuse-leap/test.sh"
},
+ alpine: {
+ sh "./autotest/alpine-edge/test.sh"
+ }
debian: {
sh "./autotest/debian-latest/test.sh"
},
--- /dev/null
+#!/bin/sh
+# Build zchunk-alpine:edge if it doesn't exist
+HAVE_IMAGE=$(docker image ls -q zchunk-alpine:edge)
+if [ "$HAVE_IMAGE" == "" ]; then
+ autotest/alpine-edge/prep.sh
+ if [ "$?" -ne 0 ]; then
+ exit 1
+ fi
+fi
+docker image rm zchunk-alpine:test -f 2>/dev/null 1>/dev/null
+docker image build -t zchunk-alpine:test --file autotest/alpine-edge/build/Dockerfile ./
+
--- /dev/null
+FROM zchunk-alpine:edge
+ADD ./ /code
+WORKDIR /code
+RUN meson build && cd build && ninja || cat /code/build/meson-logs/meson-log.txt
+WORKDIR /code/build
+CMD ninja test
--- /dev/null
+#!/bin/sh
+docker pull alpine:edge
+if [ "$?" -ne 0 ]; then
+ exit 1
+fi
+docker image rm -f zchunk-alpine:edge 2>/dev/null 1>/dev/null
+docker image build -t zchunk-alpine:edge --file autotest/alpine-edge/prep/Dockerfile ./
--- /dev/null
+FROM alpine:edge
+
+RUN apk add meson gcc musl-dev zstd-dev curl-dev openssl-dev argp-standalone && rm -rf /var/cache/apk/*
--- /dev/null
+#!/bin/sh
+# Build zchunk-alpine:edge if it doesn't exist
+HAVE_IMAGE=$(docker image ls -q zchunk-alpine:test)
+if [ "$HAVE_IMAGE" == "" ]; then
+ autotest/alpine-edge/build.sh
+ if [ "$?" -ne 0 ]; then
+ exit 1
+ fi
+fi
+docker rm zchunk-alpine-test -f 2>/dev/null 1>/dev/null
+docker run --name zchunk-alpine-test zchunk-alpine:test
+RETVAL=$?
+docker rm zchunk-alpine-test -f 2>/dev/null 1>/dev/null
+docker image rm zchunk-alpine:test -f 2>/dev/null 1>/dev/null
+exit $RETVAL
sh "./autotest/fedora-latest/prep.sh"
sh "./autotest/centos-7/prep.sh"
sh "./autotest/opensuse-leap/prep.sh"
+ sh "./autotest/alpine-edge/prep.sh"
sh "./autotest/debian-latest/prep.sh"
sh "./autotest/ubuntu-rolling/prep.sh"
}