2019-03-18 17:51:07 +03:00
|
|
|
# vim: set expandtab shiftwidth=2 tabstop=8 textwidth=0:
|
|
|
|
|
|
|
|
variables:
|
|
|
|
UPSTREAM_REPO: wayland/weston
|
2019-05-12 12:47:25 +03:00
|
|
|
DEBIAN_VERSION: buster
|
2019-03-18 17:51:07 +03:00
|
|
|
DEBIAN_EXEC: 'bash .gitlab-ci/debian-install.sh'
|
|
|
|
|
2019-05-12 12:47:25 +03:00
|
|
|
DEBIAN_TAG: '2019-06-26.0'
|
2019-03-18 17:51:07 +03:00
|
|
|
DEBIAN_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_TAG
|
|
|
|
|
|
|
|
|
|
|
|
include:
|
|
|
|
- project: 'wayland/ci-templates'
|
|
|
|
ref: c73dae8b84697ef18e2dbbf4fed7386d9652b0cd
|
|
|
|
file: '/templates/debian.yml'
|
|
|
|
|
2018-06-06 00:20:40 +03:00
|
|
|
|
|
|
|
stages:
|
2019-03-18 17:51:07 +03:00
|
|
|
- container_prep
|
2018-06-06 00:20:40 +03:00
|
|
|
- build
|
2019-06-14 16:00:07 +03:00
|
|
|
- pages
|
2018-06-06 00:20:40 +03:00
|
|
|
|
|
|
|
|
2019-03-18 17:51:07 +03:00
|
|
|
container_prep:
|
|
|
|
extends: .debian@container-ifnot-exists
|
|
|
|
stage: container_prep
|
|
|
|
|
|
|
|
|
|
|
|
.build-native:
|
2018-06-06 00:20:40 +03:00
|
|
|
stage: build
|
2019-03-18 17:51:07 +03:00
|
|
|
image: $DEBIAN_CONTAINER_IMAGE
|
|
|
|
before_script:
|
2019-05-09 12:56:04 +03:00
|
|
|
- git clone --depth=1 https://gitlab.freedesktop.org/wayland/wayland-protocols
|
2018-06-06 00:20:40 +03:00
|
|
|
- export WAYLAND_PROTOCOLS_DIR="$(pwd)/prefix-wayland-protocols"
|
|
|
|
- export PKG_CONFIG_PATH="$WAYLAND_PROTOCOLS_DIR/share/pkgconfig:$PKG_CONFIG_PATH"
|
|
|
|
- export MAKEFLAGS="-j4"
|
|
|
|
- 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)"
|
2019-06-14 16:00:07 +03:00
|
|
|
- export BUILD_ID="weston-$CI_JOB_NAME"
|
2018-06-06 00:20:40 +03:00
|
|
|
- export PREFIX="$(pwd)/prefix-$BUILD_ID"
|
|
|
|
- export BUILDDIR="$(pwd)/build-$BUILD_ID"
|
|
|
|
- mkdir "$BUILDDIR" "$PREFIX"
|
2019-03-18 17:51:07 +03:00
|
|
|
|
2018-07-22 17:38:54 +03:00
|
|
|
build-native-meson:
|
2019-03-18 17:51:07 +03:00
|
|
|
extends: .build-native
|
2018-07-22 17:38:54 +03:00
|
|
|
script:
|
|
|
|
- export PATH=~/.local/bin:$PATH
|
|
|
|
- cd "$BUILDDIR"
|
2019-06-11 11:57:40 +03:00
|
|
|
- meson --prefix="$PREFIX" -Dsimple-dmabuf-drm=intel -Dwerror=true -Ddoc=true ..
|
2018-07-22 17:38:54 +03:00
|
|
|
- ninja -k0
|
|
|
|
- ninja install
|
|
|
|
- ninja test
|
|
|
|
- ninja clean
|
|
|
|
artifacts:
|
2019-06-14 16:00:07 +03:00
|
|
|
name: weston-$CI_COMMIT_SHA
|
2018-07-22 17:38:54 +03:00
|
|
|
when: always
|
|
|
|
paths:
|
2019-01-31 05:06:22 +03:00
|
|
|
- build-*/meson-logs
|
2018-07-22 17:38:54 +03:00
|
|
|
- prefix-*
|
2019-06-14 16:00:07 +03:00
|
|
|
|
|
|
|
pages:
|
|
|
|
stage: pages
|
|
|
|
dependencies:
|
|
|
|
- build-native-meson
|
|
|
|
script:
|
|
|
|
- export PREFIX=$(pwd)/prefix-weston-build-native-meson
|
|
|
|
- mkdir public
|
2019-06-25 17:17:08 +03:00
|
|
|
- cp -R $PREFIX/share/doc/weston/* public/
|
2019-06-14 16:00:07 +03:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
|
|
|
only:
|
|
|
|
- master
|