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