Skip to content
Snippets Groups Projects
Commit 1fd9e54b authored by Simon McVittie's avatar Simon McVittie
Browse files

CI: Codify how to build on Arch Linux


Some libcapsule users and contributors are using Arch Linux or Manjaro
rather than a Debian derivative.

Many of the tests will be skipped on Gitlab-CI because they need a
working bubblewrap, which isn't allowed inside unprivileged Docker;
but this provides "executable documentation" for how to do a build
and test.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 2b213daa
No related branches found
No related tags found
1 merge request!311Build capsule-capture-libs from a bundled copy of libcapsule
...@@ -94,3 +94,43 @@ build:bionic: ...@@ -94,3 +94,43 @@ build:bionic:
variables: variables:
BUILD_IMAGE: 'ubuntu:bionic' BUILD_IMAGE: 'ubuntu:bionic'
LIBJPEG62: 'libjpeg62' LIBJPEG62: 'libjpeg62'
build:arch:
when: manual
variables:
BUILD_IMAGE: 'archlinux'
image: ${BUILD_IMAGE}
before_script:
# bubblewrap-suid instead of bubblewrap will be necessary on some
# kernels.
#
# Full test coverage is likely to require running with
# docker run --privileged, which Gitlab-CI doesn't normally do;
# as much as anything, this is here to document what's necessary
# to build libcapsule with full test coverage.
- |
pacman -Syu --needed --noconfirm --noprogressbar \
autoconf \
autoconf-archive \
automake \
bubblewrap \
chrpath \
gcc \
glib2 \
gtk-doc \
libelf \
libjpeg6-turbo \
libtool \
libxslt \
make \
perl \
perl-ipc-run \
pkgconf \
sudo \
${NULL+}
script: |
NOCONFIGURE=1 ./autogen.sh
./configure
make
make check
make distcheck
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment