[PATCH weston 2/2] Add .gitlab-ci.yml
Pekka Paalanen
ppaalanen at gmail.com
Wed Jun 6 08:03:37 UTC 2018
On Tue, 5 Jun 2018 23:06:59 +0100
Daniel Stone <daniels at collabora.com> wrote:
> Signed-off-by: Daniel Stone <daniels at collabora.com>
> ---
> .gitlab-ci.yml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 48 insertions(+)
> create mode 100644 .gitlab-ci.yml
Hi,
the same with wayland: the commit message could explain what this
brings us, even if it is obvious to those who know gitlab.
Acked-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
Notes below.
>
> diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
> new file mode 100644
> index 000000000..202fa5494
> --- /dev/null
> +++ b/.gitlab-ci.yml
> @@ -0,0 +1,48 @@
> +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 libpixman-1-dev libpng-dev libjpeg-dev libcolord-dev mesa-common-dev libglu1-mesa-dev libegl1-mesa-dev libgles2-mesa-dev libwayland-dev libxcb1-dev libxcb-composite0-dev libxcb-xfixes0-dev libxcb-xkb-dev libx11-xcb-dev libx11-dev libudev-dev libgbm-dev libxkbcommon-dev libcairo2-dev libpango1.0-dev libgdk-pixbuf2.0-dev libxcursor-dev libmtdev-dev libpam0g-dev libvpx-dev libsystemd-dev libinput-dev libwebp-dev libjpeg-dev libva-dev liblcms2-dev git
> + - mkdir -p /tmp/.X11-unix
> + - chmod 777 /tmp/.X11-unix
> +
> +build-native:
> + stage: build
> + script:
> + - git clone --depth=1 git://anongit.freedesktop.org/git/wayland/wayland-protocols
> + - export WAYLAND_PROTOCOLS_DIR="$(pwd)/prefix-wayland-protocols"
> + - export PKG_CONFIG_PATH="$WAYLAND_PROTOCOLS_DIR/share/pkgconfig:$PKG_CONFIG_PATH"
> + - cd wayland-protocols
> + - git show -s HEAD
> + - mkdir build
> + - cd build
> + - ../autogen.sh --prefix="$WAYLAND_PROTOCOLS_DIR"
> + - make install
> + - cd ../../
> + - export XDG_RUNTIME_DIR="$(mktemp -p $(pwd) -d xdg-runtime-XXXXXX)"
> + - export BUILD_ID="weston-$CI_JOB_NAME_$CI_COMMIT_SHA-$CI_JOB_ID"
> + - export PREFIX="$(pwd)/prefix-$BUILD_ID"
> + - export BUILDDIR="$(pwd)/build-$BUILD_ID"
> + - mkdir "$BUILDDIR" "$PREFIX"
> + - cd "$BUILDDIR"
> + - ../autogen.sh --prefix="$PREFIX" --disable-setuid-install --enable-xwayland --disable-xwayland-test --enable-x11-compositor --enable-drm-compositor --enable-wayland-compositor --enable-headless-compositor --enable-fbdev-compositor --enable-screen-sharing --enable-vaapi-recorder --enable-simple-clients --enable-simple-egl-clients --enable-simple-dmabuf-drm-client --enable-simple-dmabuf-v4l-client --enable-clients --enable-resize-optimization --enable-weston-launch --enable-fullscreen-shell --enable-colord --enable-dbus --enable-systemd-login --enable-junit-xml --enable-ivi-shell --enable-wcap-tools --disable-libunwind --enable-demo-clients-install --enable-lcms --with-cairo=image
There is no option --disable-libunwind anymore.
Should there be an explicit --disable-rdp-compositor?
Alternatively, would stretch have any freerdp version Weston builds
with? This can be done later, too.
> + - make -j4
> + - make check
> + - make install
> + - make distcheck
Distcheck does not --disable-xwayland-test, does it? So should we match
it with the autogen.sh arguments?
> + artifacts:
> + name: weston-$CI_COMMIT_SHA-$CI_JOB_ID
> + when: always
> + paths:
> + - build-*/weston-*.tar.xz
> + - build-*/*.log
> + - build-*/logs
> + - prefix-*
Thanks,
pq
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20180606/7b073fd4/attachment.sig>
More information about the wayland-devel
mailing list