2019-03-18 17:51:07 +03:00
|
|
|
# vim: set expandtab shiftwidth=2 tabstop=8 textwidth=0:
|
|
|
|
|
2021-07-31 17:07:58 +03:00
|
|
|
.templates_sha: &template_sha 567700e483aabed992d0a4fea84994a0472deff6 # see https://docs.gitlab.com/ee/ci/yaml/#includefile
|
2021-06-21 23:34:43 +03:00
|
|
|
# This file uses the freedesktop ci-templates to build Weston and run our
|
|
|
|
# tests in CI.
|
2021-09-12 14:48:41 +03:00
|
|
|
#
|
2021-06-21 23:34:43 +03: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 17:07:58 +03:00
|
|
|
|
2019-03-18 17:51:07 +03:00
|
|
|
variables:
|
2020-05-08 00:33:57 +03:00
|
|
|
FDO_UPSTREAM_REPO: wayland/weston
|
2021-06-22 00:25:41 +03:00
|
|
|
FDO_REPO_SUFFIX: "$BUILD_OS/$BUILD_ARCH"
|
2022-06-28 11:47:18 +03:00
|
|
|
FDO_DISTRIBUTION_TAG: '2022-06-28.00-graphviz'
|
2019-03-18 17:51:07 +03:00
|
|
|
|
|
|
|
|
|
|
|
include:
|
2021-06-21 23:34:43 +03: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-08 00:25:48 +03:00
|
|
|
- project: 'freedesktop/ci-templates'
|
2021-07-31 17:07:58 +03:00
|
|
|
ref: *template_sha
|
2019-03-18 17:51:07 +03:00
|
|
|
file: '/templates/debian.yml'
|
2021-07-31 17:12:08 +03:00
|
|
|
- project: 'freedesktop/ci-templates'
|
|
|
|
ref: *template_sha
|
|
|
|
file: '/templates/ci-fairy.yml'
|
2019-03-18 17:51:07 +03:00
|
|
|
|
2018-06-06 00:20:40 +03:00
|
|
|
|
2021-06-21 23:34:43 +03:00
|
|
|
# Define the build stages. These are used for UI grouping as well as
|
|
|
|
# dependencies.
|
2018-06-06 00:20:40 +03:00
|
|
|
stages:
|
2021-06-22 12:58:39 +03:00
|
|
|
- "Merge request checks"
|
|
|
|
- "Base container"
|
|
|
|
- "Full build and test"
|
|
|
|
- "No-GL build and test"
|
|
|
|
- "Other builds"
|
2019-06-14 16:00:07 +03:00
|
|
|
- pages
|
2018-06-06 00:20:40 +03:00
|
|
|
|
|
|
|
|
2021-06-21 23:34:43 +03:00
|
|
|
# Base variables used for anything using a Debian environment
|
2021-06-22 00:25:41 +03:00
|
|
|
.os-debian:
|
2020-05-08 00:33:57 +03:00
|
|
|
variables:
|
2021-06-22 00:25:41 +03:00
|
|
|
BUILD_OS: debian
|
2021-08-16 18:49:52 +03:00
|
|
|
FDO_DISTRIBUTION_VERSION: bullseye
|
2021-06-22 02:16:05 +03: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-08 00:33:57 +03:00
|
|
|
|
2021-07-31 17:11:35 +03:00
|
|
|
.ci-rules:
|
|
|
|
rules:
|
|
|
|
- when: on_success
|
|
|
|
|
2021-06-22 00:25:41 +03:00
|
|
|
# Does not inherit .ci-rules as we only want it to run in MR context.
|
2021-07-31 17:12:08 +03:00
|
|
|
check-commit:
|
|
|
|
extends:
|
|
|
|
- .fdo.ci-fairy
|
2021-06-22 12:58:39 +03:00
|
|
|
stage: "Merge request checks"
|
2021-07-31 17:12:08 +03: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 15:50:42 +03:00
|
|
|
- ci-fairy check-merge-request --require-allow-collaboration --junit-xml=results.xml
|
2021-07-31 17:12:08 +03:00
|
|
|
variables:
|
|
|
|
GIT_DEPTH: 100
|
|
|
|
artifacts:
|
|
|
|
reports:
|
|
|
|
junit: results.xml
|
|
|
|
|
2021-06-22 00:25:41 +03:00
|
|
|
.debian-x86_64:
|
|
|
|
extends:
|
|
|
|
- .os-debian
|
|
|
|
variables:
|
|
|
|
BUILD_ARCH: "x86-64"
|
2021-06-22 02:16:05 +03:00
|
|
|
KERNEL_IMAGE: "bzImage"
|
|
|
|
KERNEL_DEFCONFIG: "x86_64_defconfig"
|
2020-05-08 00:33:57 +03:00
|
|
|
|
2021-06-22 02:53:07 +03:00
|
|
|
.debian-armv7:
|
|
|
|
extends:
|
|
|
|
- .os-debian
|
|
|
|
variables:
|
|
|
|
BUILD_ARCH: "armv7"
|
|
|
|
|
2021-06-22 02:22:49 +03:00
|
|
|
.debian-aarch64:
|
|
|
|
extends:
|
|
|
|
- .os-debian
|
|
|
|
variables:
|
|
|
|
BUILD_ARCH: "aarch64"
|
2021-06-22 02:33:01 +03:00
|
|
|
KERNEL_IMAGE: "Image"
|
|
|
|
KERNEL_DEFCONFIG: "defconfig"
|
|
|
|
QEMU_SMP: 8 # built-in QEmu limit
|
2021-06-22 02:22:49 +03:00
|
|
|
|
2021-06-21 23:34:43 +03: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-22 00:25:41 +03:00
|
|
|
x86_64-debian-container_prep:
|
2020-05-08 00:33:57 +03:00
|
|
|
extends:
|
2021-07-31 17:11:35 +03:00
|
|
|
- .ci-rules
|
2021-06-22 00:25:41 +03:00
|
|
|
- .debian-x86_64
|
2020-05-08 00:33:57 +03:00
|
|
|
- .fdo.container-build@debian
|
2021-04-15 23:43:37 +03:00
|
|
|
timeout: 30m
|
2021-06-22 12:58:39 +03:00
|
|
|
stage: "Base container"
|
2019-03-18 17:51:07 +03:00
|
|
|
|
2021-06-22 02:53:07 +03: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 12:58:39 +03:00
|
|
|
stage: "Base container"
|
2021-06-22 02:53:07 +03:00
|
|
|
|
2021-06-22 02:22:49 +03:00
|
|
|
aarch64-debian-container_prep:
|
|
|
|
extends:
|
|
|
|
- .ci-rules
|
|
|
|
- .debian-aarch64
|
|
|
|
- .fdo.container-build@debian
|
|
|
|
tags:
|
|
|
|
- aarch64
|
|
|
|
timeout: 30m
|
2021-06-22 12:58:39 +03:00
|
|
|
stage: "Base container"
|
2019-03-18 17:51:07 +03:00
|
|
|
|
2021-06-21 23:34:43 +03:00
|
|
|
# Core templates for all of our build steps. These are reused by all build jobs
|
|
|
|
# through the `extends` keyword.
|
2021-05-12 17:08:29 +03:00
|
|
|
.build-env:
|
2021-09-22 16:29:05 +03:00
|
|
|
timeout: 15m
|
2021-05-14 13:34:49 +03:00
|
|
|
variables:
|
|
|
|
BUILDDIR: $CI_PROJECT_DIR/build-weston-$CI_JOB_NAME
|
|
|
|
PREFIX: $CI_PROJECT_DIR/prefix-weston-$CI_JOB_NAME
|
2019-03-18 17:51:07 +03:00
|
|
|
before_script:
|
2021-06-21 23:44:37 +03:00
|
|
|
- export PATH=~/.local/bin:$PATH
|
2018-06-06 00:20:40 +03:00
|
|
|
- export XDG_RUNTIME_DIR="$(mktemp -p $(pwd) -d xdg-runtime-XXXXXX)"
|
2020-06-03 16:02:34 +03:00
|
|
|
- export TESTS_RES_PATH="$BUILDDIR/tests-res.txt"
|
2018-06-06 00:20:40 +03:00
|
|
|
- mkdir "$BUILDDIR" "$PREFIX"
|
2019-03-18 17:51:07 +03:00
|
|
|
|
2021-08-03 15:11:51 +03:00
|
|
|
.build-with-clang:
|
|
|
|
variables:
|
2021-08-16 18:49:52 +03:00
|
|
|
CC: clang-11
|
|
|
|
CC_LD: lld-11
|
2021-08-03 15:11:51 +03:00
|
|
|
MESON_TOOLCHAIN_OPTIONS: "$MESON_OPTIONS -Db_lundef=false" # clang+ASan+undef=boom
|
|
|
|
|
2021-06-21 23:34:43 +03: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 17:08:29 +03:00
|
|
|
.build-and-test:
|
2021-06-22 00:25:41 +03:00
|
|
|
extends:
|
|
|
|
- .ci-rules
|
2018-07-22 17:38:54 +03:00
|
|
|
script:
|
|
|
|
- cd "$BUILDDIR"
|
2021-08-03 15:11:51 +03:00
|
|
|
- meson --prefix="$PREFIX" -Db_sanitize=address ${MESON_OPTIONS} ${MESON_TOOLCHAIN_OPTIONS} ..
|
2021-05-18 15:56:48 +03:00
|
|
|
- ninja -k0 -j${FDO_CI_CONCURRENT:-4}
|
2018-07-22 17:38:54 +03:00
|
|
|
- ninja install
|
2021-06-22 02:33:01 +03:00
|
|
|
- test -n "${QEMU_SMP}" || QEMU_SMP=${FDO_CI_CONCURRENT:-4}
|
|
|
|
- virtme-run --rw --pwd --kimg /weston-virtme/${KERNEL_IMAGE} --kopt quiet --script-dir ../.gitlab-ci/virtme-scripts --qemu-opts -m 4096 -smp ${QEMU_SMP}
|
2020-06-03 16:02:34 +03:00
|
|
|
- TEST_RES=$(cat $TESTS_RES_PATH)
|
|
|
|
- rm $TESTS_RES_PATH
|
|
|
|
- cp -R /weston-virtme ./
|
2021-06-22 02:16:05 +03:00
|
|
|
- rm weston-virtme/${KERNEL_IMAGE}
|
2020-06-03 16:02:34 +03:00
|
|
|
- exit $TEST_RES
|
2018-07-22 17:38:54 +03:00
|
|
|
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:
|
2021-05-14 13:34:49 +03:00
|
|
|
- $BUILDDIR/*.png
|
|
|
|
- $BUILDDIR/meson-logs
|
2021-11-29 21:41:20 +03:00
|
|
|
- $BUILDDIR/dmesg.log
|
2021-05-14 13:34:49 +03:00
|
|
|
- $BUILDDIR/weston-virtme
|
|
|
|
- $PREFIX
|
2021-02-08 14:32:35 +03:00
|
|
|
reports:
|
2021-05-14 13:34:49 +03:00
|
|
|
junit: $BUILDDIR/meson-logs/testlog.junit.xml
|
2019-06-14 16:00:07 +03:00
|
|
|
|
2021-06-21 23:34:43 +03:00
|
|
|
# Same as above, but without running any tests.
|
2021-05-12 17:08:29 +03:00
|
|
|
.build-no-test:
|
2021-06-22 00:25:41 +03:00
|
|
|
extends:
|
|
|
|
- .ci-rules
|
2020-12-02 23:30:34 +03:00
|
|
|
script:
|
|
|
|
- cd "$BUILDDIR"
|
|
|
|
- meson --prefix="$PREFIX" ${MESON_OPTIONS} ..
|
2021-05-18 15:56:48 +03:00
|
|
|
- ninja -k0 -j${FDO_CI_CONCURRENT:-4}
|
2020-12-02 23:30:34 +03:00
|
|
|
- ninja install
|
|
|
|
- ninja clean
|
|
|
|
artifacts:
|
|
|
|
name: weston-$CI_COMMIT_SHA
|
|
|
|
when: always
|
|
|
|
paths:
|
2021-05-14 13:34:49 +03:00
|
|
|
- $BUILDDIR/meson-logs
|
|
|
|
- $PREFIX
|
2020-12-02 23:30:34 +03:00
|
|
|
|
2021-06-22 00:25:41 +03:00
|
|
|
# OS/architecture-specific variants
|
|
|
|
.build-env-debian-x86_64:
|
|
|
|
extends:
|
|
|
|
- .debian-x86_64
|
|
|
|
- .fdo.suffixed-image@debian
|
|
|
|
- .build-env
|
2021-06-22 02:08:20 +03:00
|
|
|
needs:
|
|
|
|
- job: x86_64-debian-container_prep
|
|
|
|
artifacts: false
|
2021-06-22 00:25:41 +03:00
|
|
|
|
2021-06-22 02:53:07 +03: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-22 02:22:49 +03: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-22 00:25:41 +03:00
|
|
|
.test-env-debian-x86_64:
|
|
|
|
tags:
|
|
|
|
- kvm
|
|
|
|
extends:
|
|
|
|
- .build-env-debian-x86_64
|
|
|
|
- .build-and-test
|
2021-06-22 02:08:20 +03:00
|
|
|
needs:
|
|
|
|
- job: x86_64-debian-container_prep
|
|
|
|
artifacts: false
|
2021-06-22 00:25:41 +03:00
|
|
|
|
2021-06-22 02:33:01 +03: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-22 00:25:41 +03:00
|
|
|
# Full build, used for testing under KVM.
|
2021-06-22 02:33:01 +03:00
|
|
|
.build-options-full:
|
2021-06-22 12:58:39 +03:00
|
|
|
stage: "Full build and test"
|
2019-10-20 18:19:03 +03:00
|
|
|
variables:
|
|
|
|
MESON_OPTIONS: >
|
2019-11-21 16:06:30 +03:00
|
|
|
-Doptimization=0
|
|
|
|
-Db_coverage=true
|
2019-10-20 18:19:03 +03:00
|
|
|
-Dwerror=true
|
2021-03-03 15:31:54 +03:00
|
|
|
-Dtest-skip-is-failure=true
|
2021-04-14 23:37:36 +03:00
|
|
|
-Dlauncher-libseat=true
|
2019-11-21 16:06:30 +03:00
|
|
|
after_script:
|
2021-05-12 14:44:17 +03:00
|
|
|
- ninja -C "$BUILDDIR" coverage-html > "$BUILDDIR/meson-logs/ninja-coverage-html.txt"
|
2021-05-14 13:34:49 +03:00
|
|
|
- ninja -C "$BUILDDIR" coverage-xml
|
2021-05-12 17:08:29 +03:00
|
|
|
- sed -i -e 's/\/build-weston-build-full//' -e 's/\"..\//\"/' "$BUILDDIR/meson-logs/coverage.xml"
|
2019-10-20 18:19:03 +03:00
|
|
|
|
2021-06-22 02:33:01 +03:00
|
|
|
x86_64-debian-full-build:
|
|
|
|
extends:
|
|
|
|
- .test-env-debian-x86_64
|
|
|
|
- .build-options-full
|
2021-12-02 16:51:55 +03:00
|
|
|
artifacts:
|
|
|
|
reports:
|
2022-06-06 21:56:19 +03:00
|
|
|
coverage_report:
|
|
|
|
coverage_format: cobertura
|
|
|
|
path: $BUILDDIR/meson-logs/coverage.xml
|
2021-06-22 02:33:01 +03:00
|
|
|
|
|
|
|
aarch64-debian-full-build:
|
|
|
|
extends:
|
|
|
|
- .test-env-debian-aarch64
|
|
|
|
- .build-options-full
|
|
|
|
|
2021-08-03 15:11:51 +03: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-22 00:25:41 +03:00
|
|
|
# Docs should be invariant on all architectures, so we only do it on Debian
|
|
|
|
# x86-64.
|
2021-06-21 23:38:06 +03:00
|
|
|
docs-build:
|
2021-06-22 12:58:39 +03:00
|
|
|
stage: "Other builds"
|
2020-12-02 23:30:34 +03:00
|
|
|
variables:
|
|
|
|
MESON_OPTIONS: >
|
|
|
|
-Dwerror=true
|
|
|
|
-Ddoc=true
|
2021-06-22 00:25:41 +03:00
|
|
|
extends:
|
|
|
|
- .build-env-debian-x86_64
|
|
|
|
- .build-no-test
|
2020-12-02 23:30:34 +03:00
|
|
|
|
2021-06-22 00:25:41 +03:00
|
|
|
# Building without gl-renderer, to make sure this keeps working.
|
2021-06-22 02:22:49 +03:00
|
|
|
.build-options-no-gl:
|
2021-06-22 12:58:39 +03:00
|
|
|
stage: "No-GL build and test"
|
2019-10-20 18:19:03 +03:00
|
|
|
variables:
|
|
|
|
MESON_OPTIONS: >
|
|
|
|
-Dsimple-clients=damage,im,shm,touch,dmabuf-v4l
|
|
|
|
-Drenderer-gl=false
|
|
|
|
-Dremoting=false
|
2020-07-15 12:01:04 +03:00
|
|
|
-Dpipewire=false
|
2019-10-20 18:19:03 +03:00
|
|
|
-Dwerror=true
|
2021-04-14 23:37:36 +03:00
|
|
|
-Dlauncher-libseat=true
|
2021-09-12 14:48:41 +03:00
|
|
|
|
2021-06-22 02:22:49 +03:00
|
|
|
x86_64-debian-no-gl-build:
|
|
|
|
extends:
|
|
|
|
- .test-env-debian-x86_64
|
|
|
|
- .build-options-no-gl
|
|
|
|
|
2021-06-22 02:53:07 +03:00
|
|
|
armv7-debian-no-gl-build:
|
|
|
|
extends:
|
|
|
|
- .build-env-debian-armv7
|
|
|
|
- .build-no-test
|
|
|
|
- .build-options-no-gl
|
|
|
|
|
2021-08-03 15:11:51 +03:00
|
|
|
armv7-clang-debian-no-gl-build:
|
|
|
|
extends:
|
|
|
|
- .build-env-debian-armv7
|
|
|
|
- .build-with-clang
|
|
|
|
- .build-no-test
|
|
|
|
- .build-options-no-gl
|
|
|
|
|
2021-06-22 02:22:49 +03:00
|
|
|
aarch64-debian-no-gl-build:
|
|
|
|
extends:
|
2021-06-22 02:33:01 +03:00
|
|
|
- .test-env-debian-aarch64
|
2021-06-22 02:22:49 +03:00
|
|
|
- .build-options-no-gl
|
2019-10-20 18:19:03 +03:00
|
|
|
|
2021-06-21 23:34:43 +03: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 16:06:30 +03:00
|
|
|
docs-and-coverage:
|
2021-07-28 18:54:19 +03:00
|
|
|
extends:
|
2021-07-31 17:11:35 +03:00
|
|
|
- .ci-rules
|
2021-06-22 00:25:41 +03:00
|
|
|
- .debian-x86_64
|
|
|
|
- .fdo.suffixed-image@debian
|
2019-11-26 15:14:58 +03:00
|
|
|
stage: pages
|
2021-06-22 02:08:20 +03:00
|
|
|
needs:
|
|
|
|
- job: docs-build
|
|
|
|
artifacts: true
|
|
|
|
- job: x86_64-debian-full-build
|
|
|
|
artifacts: true
|
2021-04-15 23:43:37 +03:00
|
|
|
timeout: 5m
|
2019-11-26 15:14:58 +03:00
|
|
|
script:
|
2021-06-21 23:38:06 +03:00
|
|
|
- mv prefix-weston-docs-build/share/doc/weston Documentation
|
2021-06-22 00:25:41 +03:00
|
|
|
- mv build-weston-x86_64-debian-full-build/meson-logs/coveragereport Test_Coverage
|
2021-03-15 12:20:17 +03: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 15:14:58 +03:00
|
|
|
- rm -rf build-* prefix-*
|
|
|
|
artifacts:
|
2019-11-21 16:06:30 +03:00
|
|
|
expose_as: 'Documentation preview and test coverage report'
|
2019-11-26 15:14:58 +03:00
|
|
|
paths:
|
|
|
|
- Documentation/
|
2019-11-21 16:06:30 +03:00
|
|
|
- Test_Coverage/
|
2019-11-26 15:14:58 +03:00
|
|
|
|
2021-06-21 23:34:43 +03: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 16:00:07 +03:00
|
|
|
pages:
|
2021-07-28 21:42:52 +03:00
|
|
|
extends:
|
2021-06-22 00:25:41 +03:00
|
|
|
- .debian-x86_64
|
|
|
|
- .fdo.suffixed-image@debian
|
2019-06-14 16:00:07 +03:00
|
|
|
stage: pages
|
2021-04-15 23:43:37 +03:00
|
|
|
timeout: 5m
|
2021-06-22 02:08:20 +03:00
|
|
|
needs:
|
|
|
|
- job: docs-build
|
|
|
|
artifacts: true
|
2019-06-14 16:00:07 +03:00
|
|
|
script:
|
2021-06-21 23:38:06 +03:00
|
|
|
- export PREFIX=$(pwd)/prefix-weston-docs-build
|
2019-06-14 16:00:07 +03:00
|
|
|
- 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
|
2021-07-31 17:11:35 +03:00
|
|
|
rules:
|
|
|
|
- if: '$CI_PIPELINE_SOURCE == "push" && $CI_PROJECT_PATH == "wayland/weston" && $CI_BUILD_REF_NAME == $CI_DEFAULT_BRANCH'
|
|
|
|
when: on_success
|
|
|
|
- when: never
|