2019-03-18 14:51:07 +00:00
|
|
|
# vim: set expandtab shiftwidth=2 tabstop=8 textwidth=0:
|
|
|
|
|
2021-07-31 14:07:58 +00:00
|
|
|
.templates_sha: &template_sha 567700e483aabed992d0a4fea84994a0472deff6 # see https://docs.gitlab.com/ee/ci/yaml/#includefile
|
2021-06-21 20:34:43 +00:00
|
|
|
# This file uses the freedesktop ci-templates to build Weston and run our
|
|
|
|
# tests in CI.
|
2021-09-12 11:48:41 +00:00
|
|
|
#
|
2021-06-21 20:34:43 +00:00
|
|
|
# ci-templates uses a multi-stage build process. First, the base container
|
|
|
|
# image is built which contains the core distribution, the toolchain, and
|
|
|
|
# all our build dependencies. This container is aggressively cached; if a
|
|
|
|
# container image matching $FDO_DISTRIBUTION_TAG is found in either the
|
|
|
|
# upstream repo (wayland/weston) or the user's downstream repo, it is
|
|
|
|
# reused for the build. This gives us predictability of build and far
|
|
|
|
# quicker runtimes, however it means that any changes to the base container
|
|
|
|
# must also change $FDO_DISTRIBUTION_TAG. When changing this, please use
|
|
|
|
# the current date as well as a unique build identifier.
|
|
|
|
#
|
|
|
|
# After the container is either rebuilt (tag mismatch) or reused (tag
|
|
|
|
# previously used), the build stage executes within this container.
|
|
|
|
#
|
|
|
|
# The final stage is used to expose documentation and coverage information,
|
|
|
|
# including publishing documentation to the public site when built on the
|
|
|
|
# main branch.
|
|
|
|
#
|
|
|
|
# Apart from the 'variables', 'include', and 'stages' top-level anchors,
|
|
|
|
# everything not beginning with a dot ('.') is the name of a job which will
|
|
|
|
# be executed as part of CI, unless the rules specify that it should not be
|
|
|
|
# run.
|
|
|
|
#
|
|
|
|
# Variables prefixed with CI_ are generally provided by GitLab itself;
|
|
|
|
# variables prefixed with FDO_ and templates prefixed by .fdo are provided
|
|
|
|
# by the ci-templates.
|
|
|
|
#
|
|
|
|
# For more information on GitLab CI, including the YAML syntax, see:
|
|
|
|
# https://docs.gitlab.com/ee/ci/yaml/README.html
|
|
|
|
#
|
|
|
|
# Note that freedesktop.org uses the 'Community Edition' of GitLab, so features
|
|
|
|
# marked as 'premium' or 'ultimate' are not available to us.
|
|
|
|
#
|
|
|
|
# For more information on ci-templates, see:
|
|
|
|
# - documentation at https://freedesktop.pages.freedesktop.org/ci-templates/
|
|
|
|
# - repo at https://gitlab.freedesktop.org/freedesktop/ci-templates/
|
2021-07-31 14:07:58 +00:00
|
|
|
|
2019-03-18 14:51:07 +00:00
|
|
|
variables:
|
2020-05-07 21:33:57 +00:00
|
|
|
FDO_UPSTREAM_REPO: wayland/weston
|
2021-06-21 21:25:41 +00:00
|
|
|
FDO_REPO_SUFFIX: "$BUILD_OS/$BUILD_ARCH"
|
2023-02-21 16:35:33 +00:00
|
|
|
FDO_DISTRIBUTION_TAG: '2023-02-21-bump-meson-to-1.0.0'
|
2019-03-18 14:51:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
include:
|
2021-06-21 20:34:43 +00:00
|
|
|
# Here we use a fixed ref in order to isolate ourselves from ci-templates
|
|
|
|
# API changes. If you need new features from ci-templates you must bump
|
|
|
|
# this to the current SHA you require from the ci-templates repo, however
|
|
|
|
# be aware that you may need to account for API changes when doing so.
|
2020-05-07 21:25:48 +00:00
|
|
|
- project: 'freedesktop/ci-templates'
|
2021-07-31 14:07:58 +00:00
|
|
|
ref: *template_sha
|
2019-03-18 14:51:07 +00:00
|
|
|
file: '/templates/debian.yml'
|
2021-07-31 14:12:08 +00:00
|
|
|
- project: 'freedesktop/ci-templates'
|
|
|
|
ref: *template_sha
|
|
|
|
file: '/templates/ci-fairy.yml'
|
2019-03-18 14:51:07 +00:00
|
|
|
|
2018-06-05 21:20:40 +00:00
|
|
|
|
2021-06-21 20:34:43 +00:00
|
|
|
# Define the build stages. These are used for UI grouping as well as
|
|
|
|
# dependencies.
|
2018-06-05 21:20:40 +00:00
|
|
|
stages:
|
2021-06-22 09:58:39 +00:00
|
|
|
- "Merge request checks"
|
|
|
|
- "Base container"
|
|
|
|
- "Full build and test"
|
|
|
|
- "No-GL build and test"
|
|
|
|
- "Other builds"
|
2019-06-14 13:00:07 +00:00
|
|
|
- pages
|
2018-06-05 21:20:40 +00:00
|
|
|
|
|
|
|
|
2021-06-21 20:34:43 +00:00
|
|
|
# Base variables used for anything using a Debian environment
|
2021-06-21 21:25:41 +00:00
|
|
|
.os-debian:
|
2020-05-07 21:33:57 +00:00
|
|
|
variables:
|
2021-06-21 21:25:41 +00:00
|
|
|
BUILD_OS: debian
|
2021-08-16 15:49:52 +00:00
|
|
|
FDO_DISTRIBUTION_VERSION: bullseye
|
2021-06-21 23:16:05 +00:00
|
|
|
FDO_DISTRIBUTION_EXEC: 'env FDO_CI_CONCURRENT=${FDO_CI_CONCURRENT} BUILD_ARCH=${BUILD_ARCH} KERNEL_IMAGE=${KERNEL_IMAGE} KERNEL_DEFCONFIG=${KERNEL_DEFCONFIG} bash .gitlab-ci/debian-install.sh'
|
2020-05-07 21:33:57 +00:00
|
|
|
|
2021-07-31 14:11:35 +00:00
|
|
|
.ci-rules:
|
|
|
|
rules:
|
|
|
|
- when: on_success
|
|
|
|
|
2021-06-21 21:25:41 +00:00
|
|
|
# Does not inherit .ci-rules as we only want it to run in MR context.
|
2021-07-31 14:12:08 +00:00
|
|
|
check-commit:
|
|
|
|
extends:
|
|
|
|
- .fdo.ci-fairy
|
2021-06-22 09:58:39 +00:00
|
|
|
stage: "Merge request checks"
|
2021-07-31 14:12:08 +00:00
|
|
|
rules:
|
|
|
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
|
|
|
when: always
|
|
|
|
- when: never
|
|
|
|
script:
|
|
|
|
- ci-fairy check-commits --signed-off-by --junit-xml=results.xml
|
2021-10-18 12:50:42 +00:00
|
|
|
- ci-fairy check-merge-request --require-allow-collaboration --junit-xml=results.xml
|
2021-07-31 14:12:08 +00:00
|
|
|
variables:
|
|
|
|
GIT_DEPTH: 100
|
|
|
|
artifacts:
|
|
|
|
reports:
|
|
|
|
junit: results.xml
|
|
|
|
|
2021-06-21 21:25:41 +00:00
|
|
|
.debian-x86_64:
|
|
|
|
extends:
|
|
|
|
- .os-debian
|
|
|
|
variables:
|
|
|
|
BUILD_ARCH: "x86-64"
|
2021-06-21 23:16:05 +00:00
|
|
|
KERNEL_IMAGE: "bzImage"
|
|
|
|
KERNEL_DEFCONFIG: "x86_64_defconfig"
|
2020-05-07 21:33:57 +00:00
|
|
|
|
2021-06-21 23:53:07 +00:00
|
|
|
.debian-armv7:
|
|
|
|
extends:
|
|
|
|
- .os-debian
|
|
|
|
variables:
|
|
|
|
BUILD_ARCH: "armv7"
|
|
|
|
|
2021-06-21 23:22:49 +00:00
|
|
|
.debian-aarch64:
|
|
|
|
extends:
|
|
|
|
- .os-debian
|
|
|
|
variables:
|
|
|
|
BUILD_ARCH: "aarch64"
|
2021-06-21 23:33:01 +00:00
|
|
|
KERNEL_IMAGE: "Image"
|
|
|
|
KERNEL_DEFCONFIG: "defconfig"
|
|
|
|
QEMU_SMP: 8 # built-in QEmu limit
|
2021-06-21 23:22:49 +00:00
|
|
|
|
2021-06-21 20:34:43 +00:00
|
|
|
# Build our base container image, which contains the core distribution, the
|
|
|
|
# toolchain, and all our build dependencies. This will be reused in the build
|
|
|
|
# stage.
|
2021-06-21 21:25:41 +00:00
|
|
|
x86_64-debian-container_prep:
|
2020-05-07 21:33:57 +00:00
|
|
|
extends:
|
2021-07-31 14:11:35 +00:00
|
|
|
- .ci-rules
|
2021-06-21 21:25:41 +00:00
|
|
|
- .debian-x86_64
|
2020-05-07 21:33:57 +00:00
|
|
|
- .fdo.container-build@debian
|
2021-04-15 20:43:37 +00:00
|
|
|
timeout: 30m
|
2021-06-22 09:58:39 +00:00
|
|
|
stage: "Base container"
|
2019-03-18 14:51:07 +00:00
|
|
|
|
2021-06-21 23:53:07 +00:00
|
|
|
armv7-debian-container_prep:
|
|
|
|
extends:
|
|
|
|
- .ci-rules
|
|
|
|
- .debian-armv7
|
|
|
|
- .fdo.container-build@debian
|
|
|
|
tags:
|
|
|
|
- aarch64
|
|
|
|
variables:
|
|
|
|
FDO_BASE_IMAGE: "arm32v7/debian:$FDO_DISTRIBUTION_VERSION"
|
|
|
|
timeout: 30m
|
2021-06-22 09:58:39 +00:00
|
|
|
stage: "Base container"
|
2021-06-21 23:53:07 +00:00
|
|
|
|
2021-06-21 23:22:49 +00:00
|
|
|
aarch64-debian-container_prep:
|
|
|
|
extends:
|
|
|
|
- .ci-rules
|
|
|
|
- .debian-aarch64
|
|
|
|
- .fdo.container-build@debian
|
|
|
|
tags:
|
|
|
|
- aarch64
|
|
|
|
timeout: 30m
|
2021-06-22 09:58:39 +00:00
|
|
|
stage: "Base container"
|
2019-03-18 14:51:07 +00:00
|
|
|
|
2021-06-21 20:34:43 +00:00
|
|
|
# Core templates for all of our build steps. These are reused by all build jobs
|
|
|
|
# through the `extends` keyword.
|
2021-05-12 14:08:29 +00:00
|
|
|
.build-env:
|
2021-09-22 13:29:05 +00:00
|
|
|
timeout: 15m
|
2021-05-14 10:34:49 +00:00
|
|
|
variables:
|
|
|
|
BUILDDIR: $CI_PROJECT_DIR/build-weston-$CI_JOB_NAME
|
|
|
|
PREFIX: $CI_PROJECT_DIR/prefix-weston-$CI_JOB_NAME
|
2019-03-18 14:51:07 +00:00
|
|
|
before_script:
|
2021-06-21 20:44:37 +00:00
|
|
|
- export PATH=~/.local/bin:$PATH
|
2018-06-05 21:20:40 +00:00
|
|
|
- export XDG_RUNTIME_DIR="$(mktemp -p $(pwd) -d xdg-runtime-XXXXXX)"
|
2020-06-03 13:02:34 +00:00
|
|
|
- export TESTS_RES_PATH="$BUILDDIR/tests-res.txt"
|
2018-06-05 21:20:40 +00:00
|
|
|
- mkdir "$BUILDDIR" "$PREFIX"
|
2019-03-18 14:51:07 +00:00
|
|
|
|
2021-08-03 12:11:51 +00:00
|
|
|
.build-with-clang:
|
|
|
|
variables:
|
2021-08-16 15:49:52 +00:00
|
|
|
CC: clang-11
|
|
|
|
CC_LD: lld-11
|
2021-08-03 12:11:51 +00:00
|
|
|
MESON_TOOLCHAIN_OPTIONS: "$MESON_OPTIONS -Db_lundef=false" # clang+ASan+undef=boom
|
|
|
|
|
2021-06-21 20:34:43 +00:00
|
|
|
# Extends the core build templates to also provide for running our testing. We
|
|
|
|
# run this inside a virtme (qemu wrapper) VM environment so we can test the DRM
|
|
|
|
# backend using the 'vkms' virtual driver under Linux.
|
2021-05-12 14:08:29 +00:00
|
|
|
.build-and-test:
|
2021-06-21 21:25:41 +00:00
|
|
|
extends:
|
|
|
|
- .ci-rules
|
2018-07-22 14:38:54 +00:00
|
|
|
script:
|
|
|
|
- cd "$BUILDDIR"
|
2021-08-03 12:11:51 +00:00
|
|
|
- meson --prefix="$PREFIX" -Db_sanitize=address ${MESON_OPTIONS} ${MESON_TOOLCHAIN_OPTIONS} ..
|
2021-05-18 12:56:48 +00:00
|
|
|
- ninja -k0 -j${FDO_CI_CONCURRENT:-4}
|
2018-07-22 14:38:54 +00:00
|
|
|
- ninja install
|
2021-06-21 23:33:01 +00:00
|
|
|
- test -n "${QEMU_SMP}" || QEMU_SMP=${FDO_CI_CONCURRENT:-4}
|
2023-02-21 19:36:59 +00:00
|
|
|
- virtme-run --rw --pwd --kimg /weston-virtme/${KERNEL_IMAGE} --kopt quiet --kopt log_buf_len=2M --script-dir ../.gitlab-ci/virtme-scripts --qemu-opts -m 4096 -smp ${QEMU_SMP}
|
2020-06-03 13:02:34 +00:00
|
|
|
- TEST_RES=$(cat $TESTS_RES_PATH)
|
|
|
|
- rm $TESTS_RES_PATH
|
|
|
|
- cp -R /weston-virtme ./
|
2021-06-21 23:16:05 +00:00
|
|
|
- rm weston-virtme/${KERNEL_IMAGE}
|
2020-06-03 13:02:34 +00:00
|
|
|
- exit $TEST_RES
|
2018-07-22 14:38:54 +00:00
|
|
|
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:
|
2021-05-14 10:34:49 +00:00
|
|
|
- $BUILDDIR/*.png
|
|
|
|
- $BUILDDIR/meson-logs
|
2021-11-29 18:41:20 +00:00
|
|
|
- $BUILDDIR/dmesg.log
|
2021-05-14 10:34:49 +00:00
|
|
|
- $BUILDDIR/weston-virtme
|
|
|
|
- $PREFIX
|
2021-02-08 11:32:35 +00:00
|
|
|
reports:
|
2022-06-25 18:53:41 +00:00
|
|
|
junit: $BUILDDIR/meson-logs/testlog-per-test-asan.sh.junit.xml
|
2019-06-14 13:00:07 +00:00
|
|
|
|
2021-06-21 20:34:43 +00:00
|
|
|
# Same as above, but without running any tests.
|
2021-05-12 14:08:29 +00:00
|
|
|
.build-no-test:
|
2021-06-21 21:25:41 +00:00
|
|
|
extends:
|
|
|
|
- .ci-rules
|
2020-12-02 20:30:34 +00:00
|
|
|
script:
|
|
|
|
- cd "$BUILDDIR"
|
|
|
|
- meson --prefix="$PREFIX" ${MESON_OPTIONS} ..
|
2021-05-18 12:56:48 +00:00
|
|
|
- ninja -k0 -j${FDO_CI_CONCURRENT:-4}
|
2020-12-02 20:30:34 +00:00
|
|
|
- ninja install
|
|
|
|
- ninja clean
|
|
|
|
artifacts:
|
|
|
|
name: weston-$CI_COMMIT_SHA
|
|
|
|
when: always
|
|
|
|
paths:
|
2021-05-14 10:34:49 +00:00
|
|
|
- $BUILDDIR/meson-logs
|
|
|
|
- $PREFIX
|
2020-12-02 20:30:34 +00:00
|
|
|
|
2021-06-21 21:25:41 +00:00
|
|
|
# OS/architecture-specific variants
|
|
|
|
.build-env-debian-x86_64:
|
|
|
|
extends:
|
|
|
|
- .debian-x86_64
|
|
|
|
- .fdo.suffixed-image@debian
|
|
|
|
- .build-env
|
2021-06-21 23:08:20 +00:00
|
|
|
needs:
|
|
|
|
- job: x86_64-debian-container_prep
|
|
|
|
artifacts: false
|
2021-06-21 21:25:41 +00:00
|
|
|
|
2021-06-21 23:53:07 +00:00
|
|
|
.build-env-debian-armv7:
|
|
|
|
tags:
|
|
|
|
- aarch64
|
|
|
|
extends:
|
|
|
|
- .debian-armv7
|
|
|
|
- .fdo.suffixed-image@debian
|
|
|
|
- .build-env
|
|
|
|
needs:
|
|
|
|
- job: armv7-debian-container_prep
|
|
|
|
artifacts: false
|
|
|
|
|
2021-06-21 23:22:49 +00:00
|
|
|
.build-env-debian-aarch64:
|
|
|
|
tags:
|
|
|
|
- aarch64
|
|
|
|
extends:
|
|
|
|
- .debian-aarch64
|
|
|
|
- .fdo.suffixed-image@debian
|
|
|
|
- .build-env
|
|
|
|
needs:
|
|
|
|
- job: aarch64-debian-container_prep
|
|
|
|
artifacts: false
|
|
|
|
|
2021-06-21 21:25:41 +00:00
|
|
|
.test-env-debian-x86_64:
|
|
|
|
tags:
|
|
|
|
- kvm
|
|
|
|
extends:
|
|
|
|
- .build-env-debian-x86_64
|
|
|
|
- .build-and-test
|
2021-06-21 23:08:20 +00:00
|
|
|
needs:
|
|
|
|
- job: x86_64-debian-container_prep
|
|
|
|
artifacts: false
|
2021-06-21 21:25:41 +00:00
|
|
|
|
2021-06-21 23:33:01 +00:00
|
|
|
.test-env-debian-aarch64:
|
|
|
|
tags:
|
|
|
|
- kvm-aarch64
|
|
|
|
extends:
|
|
|
|
- .build-env-debian-aarch64
|
|
|
|
- .build-and-test
|
|
|
|
needs:
|
|
|
|
- job: aarch64-debian-container_prep
|
|
|
|
artifacts: false
|
|
|
|
|
2021-06-21 21:25:41 +00:00
|
|
|
# Full build, used for testing under KVM.
|
2021-06-21 23:33:01 +00:00
|
|
|
.build-options-full:
|
2021-06-22 09:58:39 +00:00
|
|
|
stage: "Full build and test"
|
2019-10-20 15:19:03 +00:00
|
|
|
variables:
|
|
|
|
MESON_OPTIONS: >
|
2019-11-21 13:06:30 +00:00
|
|
|
-Doptimization=0
|
|
|
|
-Db_coverage=true
|
2019-10-20 15:19:03 +00:00
|
|
|
-Dwerror=true
|
2021-03-03 12:31:54 +00:00
|
|
|
-Dtest-skip-is-failure=true
|
2021-04-14 20:37:36 +00:00
|
|
|
-Dlauncher-libseat=true
|
2022-10-10 07:48:30 +00:00
|
|
|
-Ddeprecated-launcher-logind=true
|
2022-07-01 09:24:03 +00:00
|
|
|
-Ddeprecated-color-management-static=true
|
|
|
|
-Ddeprecated-color-management-colord=true
|
2019-11-21 13:06:30 +00:00
|
|
|
after_script:
|
2021-05-12 11:44:17 +00:00
|
|
|
- ninja -C "$BUILDDIR" coverage-html > "$BUILDDIR/meson-logs/ninja-coverage-html.txt"
|
2021-05-14 10:34:49 +00:00
|
|
|
- ninja -C "$BUILDDIR" coverage-xml
|
2019-10-20 15:19:03 +00:00
|
|
|
|
2021-06-21 23:33:01 +00:00
|
|
|
x86_64-debian-full-build:
|
|
|
|
extends:
|
|
|
|
- .test-env-debian-x86_64
|
|
|
|
- .build-options-full
|
2021-12-02 13:51:55 +00:00
|
|
|
artifacts:
|
|
|
|
reports:
|
2022-06-06 18:56:19 +00:00
|
|
|
coverage_report:
|
|
|
|
coverage_format: cobertura
|
|
|
|
path: $BUILDDIR/meson-logs/coverage.xml
|
2021-06-21 23:33:01 +00:00
|
|
|
|
|
|
|
aarch64-debian-full-build:
|
|
|
|
extends:
|
|
|
|
- .test-env-debian-aarch64
|
|
|
|
- .build-options-full
|
|
|
|
|
2021-08-03 12:11:51 +00:00
|
|
|
x86_64-clang-debian-full-build:
|
|
|
|
extends:
|
|
|
|
- .test-env-debian-x86_64
|
|
|
|
- .build-with-clang
|
|
|
|
- .build-options-full
|
|
|
|
|
|
|
|
aarch64-clang-debian-full-build:
|
|
|
|
extends:
|
|
|
|
- .test-env-debian-aarch64
|
|
|
|
- .build-with-clang
|
|
|
|
- .build-options-full
|
|
|
|
|
2021-06-21 21:25:41 +00:00
|
|
|
# Docs should be invariant on all architectures, so we only do it on Debian
|
|
|
|
# x86-64.
|
2021-06-21 20:38:06 +00:00
|
|
|
docs-build:
|
2021-06-22 09:58:39 +00:00
|
|
|
stage: "Other builds"
|
2020-12-02 20:30:34 +00:00
|
|
|
variables:
|
|
|
|
MESON_OPTIONS: >
|
|
|
|
-Dwerror=true
|
|
|
|
-Ddoc=true
|
2021-06-21 21:25:41 +00:00
|
|
|
extends:
|
|
|
|
- .build-env-debian-x86_64
|
|
|
|
- .build-no-test
|
2020-12-02 20:30:34 +00:00
|
|
|
|
2021-06-21 21:25:41 +00:00
|
|
|
# Building without gl-renderer, to make sure this keeps working.
|
2021-06-21 23:22:49 +00:00
|
|
|
.build-options-no-gl:
|
2021-06-22 09:58:39 +00:00
|
|
|
stage: "No-GL build and test"
|
2019-10-20 15:19:03 +00:00
|
|
|
variables:
|
|
|
|
MESON_OPTIONS: >
|
|
|
|
-Dsimple-clients=damage,im,shm,touch,dmabuf-v4l
|
|
|
|
-Drenderer-gl=false
|
|
|
|
-Dremoting=false
|
2020-07-15 09:01:04 +00:00
|
|
|
-Dpipewire=false
|
2019-10-20 15:19:03 +00:00
|
|
|
-Dwerror=true
|
2021-04-14 20:37:36 +00:00
|
|
|
-Dlauncher-libseat=true
|
2021-09-12 11:48:41 +00:00
|
|
|
|
2021-06-21 23:22:49 +00:00
|
|
|
x86_64-debian-no-gl-build:
|
|
|
|
extends:
|
|
|
|
- .test-env-debian-x86_64
|
|
|
|
- .build-options-no-gl
|
|
|
|
|
2021-06-21 23:53:07 +00:00
|
|
|
armv7-debian-no-gl-build:
|
|
|
|
extends:
|
|
|
|
- .build-env-debian-armv7
|
|
|
|
- .build-no-test
|
|
|
|
- .build-options-no-gl
|
|
|
|
|
2021-08-03 12:11:51 +00:00
|
|
|
armv7-clang-debian-no-gl-build:
|
|
|
|
extends:
|
|
|
|
- .build-env-debian-armv7
|
|
|
|
- .build-with-clang
|
|
|
|
- .build-no-test
|
|
|
|
- .build-options-no-gl
|
|
|
|
|
2021-06-21 23:22:49 +00:00
|
|
|
aarch64-debian-no-gl-build:
|
|
|
|
extends:
|
2021-06-21 23:33:01 +00:00
|
|
|
- .test-env-debian-aarch64
|
2021-06-21 23:22:49 +00:00
|
|
|
- .build-options-no-gl
|
2019-10-20 15:19:03 +00:00
|
|
|
|
2021-06-21 20:34:43 +00:00
|
|
|
# Expose docs and coverage reports, so we can show users any changes to these
|
|
|
|
# inside their merge requests, letting us check them before merge.
|
|
|
|
#
|
|
|
|
# This does not build the docs or coverage information itself, but just reuses
|
|
|
|
# the docs and coverage information from the x86-64 Debian builds as the
|
|
|
|
# canonical sources of coverage information; the docs themselves should be
|
|
|
|
# invariant across any architecture or OS.
|
2019-11-21 13:06:30 +00:00
|
|
|
docs-and-coverage:
|
2021-07-28 15:54:19 +00:00
|
|
|
extends:
|
2021-07-31 14:11:35 +00:00
|
|
|
- .ci-rules
|
2021-06-21 21:25:41 +00:00
|
|
|
- .debian-x86_64
|
|
|
|
- .fdo.suffixed-image@debian
|
2019-11-26 12:14:58 +00:00
|
|
|
stage: pages
|
2021-06-21 23:08:20 +00:00
|
|
|
needs:
|
|
|
|
- job: docs-build
|
|
|
|
artifacts: true
|
|
|
|
- job: x86_64-debian-full-build
|
|
|
|
artifacts: true
|
2021-04-15 20:43:37 +00:00
|
|
|
timeout: 5m
|
2019-11-26 12:14:58 +00:00
|
|
|
script:
|
2021-06-21 20:38:06 +00:00
|
|
|
- mv prefix-weston-docs-build/share/doc/weston Documentation
|
2021-06-21 21:25:41 +00:00
|
|
|
- mv build-weston-x86_64-debian-full-build/meson-logs/coveragereport Test_Coverage
|
2021-03-15 09:20:17 +00:00
|
|
|
- rm Test_Coverage/gcov.css
|
|
|
|
- cp doc/style/lcov-style.css Test_Coverage/gcov.css
|
|
|
|
- cp doc/style/*.png Test_Coverage/
|
2019-11-26 12:14:58 +00:00
|
|
|
- rm -rf build-* prefix-*
|
|
|
|
artifacts:
|
2019-11-21 13:06:30 +00:00
|
|
|
expose_as: 'Documentation preview and test coverage report'
|
2019-11-26 12:14:58 +00:00
|
|
|
paths:
|
|
|
|
- Documentation/
|
2019-11-21 13:06:30 +00:00
|
|
|
- Test_Coverage/
|
2019-11-26 12:14:58 +00:00
|
|
|
|
2021-06-21 20:34:43 +00:00
|
|
|
# Generate the documentation for https://wayland.pages.freedesktop.org/weston/
|
|
|
|
# Anything under public/ is published to this URL.
|
|
|
|
#
|
|
|
|
# Does not inherit .ci-rules as it should only run in our default branch for
|
|
|
|
# the upstream repo.
|
2019-06-14 13:00:07 +00:00
|
|
|
pages:
|
2021-07-28 18:42:52 +00:00
|
|
|
extends:
|
2021-06-21 21:25:41 +00:00
|
|
|
- .debian-x86_64
|
|
|
|
- .fdo.suffixed-image@debian
|
2019-06-14 13:00:07 +00:00
|
|
|
stage: pages
|
2021-04-15 20:43:37 +00:00
|
|
|
timeout: 5m
|
2021-06-21 23:08:20 +00:00
|
|
|
needs:
|
|
|
|
- job: docs-build
|
|
|
|
artifacts: true
|
2019-06-14 13:00:07 +00:00
|
|
|
script:
|
2021-06-21 20:38:06 +00:00
|
|
|
- export PREFIX=$(pwd)/prefix-weston-docs-build
|
2019-06-14 13:00:07 +00:00
|
|
|
- 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
|
2021-07-31 14:11:35 +00:00
|
|
|
rules:
|
|
|
|
- if: '$CI_PIPELINE_SOURCE == "push" && $CI_PROJECT_PATH == "wayland/weston" && $CI_BUILD_REF_NAME == $CI_DEFAULT_BRANCH'
|
|
|
|
when: on_success
|
|
|
|
- when: never
|