mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
Add .gitlab-ci.yml
Add a GitLab CI configuration which tests building, 'make check', and
'make distcheck' of the tree inside a Debian Stretch container. The
choice of distribution base was arbitrary and may easily be changed.
When commits are pushed to upstream, the commits will run this CI
pipeline to run these tests, and capture the result as an artifact
bundle, including the compiled binaries and full test suite logs.
Results can be seen at:
https://gitlab.freedesktop.org/wayland/wayland/pipelines/
Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
0e6ac72288
commit
a060822399
1 changed files with 35 additions and 0 deletions
35
.gitlab-ci.yml
Normal file
35
.gitlab-ci.yml
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
image: debian:stretch
|
||||
|
||||
stages:
|
||||
- build
|
||||
|
||||
before_script:
|
||||
- echo 'path-exclude=/usr/share/doc/*' > /etc/dpkg/dpkg.cfg.d/99-exclude-cruft
|
||||
- echo 'path-exclude=/usr/share/man/*' >> /etc/dpkg/dpkg.cfg.d/99-exclude-cruft
|
||||
- echo '#!/bin/sh' > /usr/sbin/policy-rc.d
|
||||
- echo 'exit 101' >> /usr/sbin/policy-rc.d
|
||||
- chmod +x /usr/sbin/policy-rc.d
|
||||
- apt-get update
|
||||
- apt-get -y --no-install-recommends install build-essential automake autoconf libtool pkg-config libexpat1-dev libffi-dev libxml2-dev doxygen graphviz xmlto xsltproc docbook-xsl
|
||||
|
||||
build-native:
|
||||
stage: build
|
||||
script:
|
||||
- export BUILD_ID="wayland-$CI_JOB_NAME_$CI_COMMIT_SHA-$CI_JOB_ID"
|
||||
- export PREFIX="$(pwd)/prefix-$BUILD_ID"
|
||||
- export BUILDDIR="$(pwd)/build-$BUILD_ID"
|
||||
- export MAKEFLAGS="-j4"
|
||||
- mkdir "$BUILDDIR" "$PREFIX"
|
||||
- cd "$BUILDDIR"
|
||||
- ../autogen.sh --prefix="$PREFIX" --with-icondir=/usr/share/X11/icons
|
||||
- make all
|
||||
- make check
|
||||
- make install
|
||||
- make distcheck
|
||||
artifacts:
|
||||
name: wayland-$CI_COMMIT_SHA-$CI_JOB_ID
|
||||
when: always
|
||||
paths:
|
||||
- build-*/wayland-*.tar.xz
|
||||
- build-*/*.log
|
||||
- prefix-*
|
||||
Loading…
Add table
Add a link
Reference in a new issue