2019-03-18 11:09:29 +01:00
|
|
|
# DEBIAN_TAG is the tag of the docker image used for the build jobs. If the
|
2018-12-14 11:04:24 +01:00
|
|
|
# image doesn't exist yet, the docker-image stage generates it.
|
|
|
|
#
|
|
|
|
# In order to generate a new image, one should generally change the tag.
|
|
|
|
# While removing the image from the registry would also work, that's not
|
|
|
|
# recommended except for ephemeral images during development: Replacing an
|
|
|
|
# image after a significant amount of time might pull in newer versions of
|
|
|
|
# gcc/clang or other packages, which might break the build with older commits
|
|
|
|
# using the same tag.
|
|
|
|
#
|
|
|
|
# After merging a change resulting in generating a new image to the main
|
|
|
|
# repository, it's recommended to remove the image from the source repository's
|
|
|
|
# container registry, so that the image from the main repository's registry
|
2019-03-27 17:45:34 +01:00
|
|
|
# will be used there as well. You can manage your images on your fork of:
|
|
|
|
# https://gitlab.freedesktop.org/xorg/xserver/container_registry
|
2018-12-14 11:04:24 +01:00
|
|
|
variables:
|
2019-03-18 11:09:29 +01:00
|
|
|
UPSTREAM_REPO: xorg/xserver
|
|
|
|
DEBIAN_VERSION: testing-slim
|
|
|
|
DEBIAN_EXEC: 'bash .gitlab-ci/debian-install.sh'
|
|
|
|
|
2020-04-21 00:01:21 +02:00
|
|
|
DEBIAN_TAG: "2020-04-21"
|
2019-03-18 11:09:29 +01:00
|
|
|
IMAGE_LOCAL: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_TAG"
|
|
|
|
|
|
|
|
include:
|
2020-05-08 02:54:31 +02:00
|
|
|
- project: 'freedesktop/ci-templates'
|
2019-12-12 00:23:47 +01:00
|
|
|
ref: b7030c2cd0d6ccc5f6d4f8299bafa4daa9240d71
|
2019-03-18 11:09:29 +01:00
|
|
|
file: '/templates/debian.yml'
|
2018-04-25 19:39:18 +02:00
|
|
|
|
2018-12-14 11:04:24 +01:00
|
|
|
stages:
|
|
|
|
- docker-image
|
|
|
|
- build-and-test
|
|
|
|
|
2019-12-23 10:03:20 +01:00
|
|
|
.ci-run-policy:
|
2019-12-23 10:06:25 +01:00
|
|
|
# Retry jobs after runner system failures
|
2019-03-29 10:12:40 +01:00
|
|
|
retry:
|
|
|
|
max: 2
|
|
|
|
when:
|
|
|
|
- runner_system_failure
|
2019-12-23 10:06:25 +01:00
|
|
|
# Cancel CI run if a newer commit is pushed to the same branch
|
|
|
|
interruptible: true
|
2019-03-29 10:12:40 +01:00
|
|
|
|
2018-12-14 11:04:24 +01:00
|
|
|
debian-testing:
|
2019-12-23 10:03:20 +01:00
|
|
|
extends:
|
|
|
|
- .debian@container-ifnot-exists
|
|
|
|
- .ci-run-policy
|
2019-03-18 11:09:29 +01:00
|
|
|
stage: docker-image
|
2018-12-14 11:04:24 +01:00
|
|
|
|
2019-02-19 18:37:53 +01:00
|
|
|
.common-build-and-test:
|
2019-12-23 10:03:20 +01:00
|
|
|
extends: .ci-run-policy
|
2018-12-14 11:04:24 +01:00
|
|
|
stage: build-and-test
|
|
|
|
image: $IMAGE_LOCAL
|
2018-12-12 18:34:36 +01:00
|
|
|
artifacts:
|
|
|
|
when: on_failure
|
|
|
|
paths:
|
|
|
|
- build/test/piglit-results/
|
2018-12-13 18:29:31 +01:00
|
|
|
variables:
|
2019-12-23 10:41:32 +01:00
|
|
|
CCACHE_COMPILERCHECK: content
|
|
|
|
CCACHE_DIR: /cache/xserver/cache
|
2018-12-14 17:25:41 +01:00
|
|
|
LC_ALL: C.UTF-8
|
2019-02-14 17:39:24 +01:00
|
|
|
before_script:
|
|
|
|
- export CCACHE_BASEDIR="$PWD"
|
2019-02-19 18:37:53 +01:00
|
|
|
- export PATH="/usr/lib/ccache:$PATH"
|
2019-02-14 17:39:24 +01:00
|
|
|
- ccache --show-stats
|
2019-02-19 18:37:53 +01:00
|
|
|
after_script:
|
2019-12-23 10:41:32 +01:00
|
|
|
- ccache --show-stats
|
2019-02-19 18:37:53 +01:00
|
|
|
|
2020-02-10 18:44:11 +01:00
|
|
|
autotools:
|
2019-02-19 18:37:53 +01:00
|
|
|
extends: .common-build-and-test
|
|
|
|
script:
|
|
|
|
- mkdir build/
|
|
|
|
- cd build/
|
2020-02-05 11:32:24 +01:00
|
|
|
- ../autogen.sh --prefix=/usr CFLAGS="-fno-common"
|
2019-12-23 09:35:09 +01:00
|
|
|
- make -j4 distcheck
|
|
|
|
- PIGLIT_DIR=/root/piglit XTEST_DIR=/root/xts make -j4 check
|
2019-10-04 10:29:31 +02:00
|
|
|
- cd ..
|
|
|
|
- .gitlab-ci/manpages-check
|
2019-02-19 18:37:53 +01:00
|
|
|
|
2020-02-10 18:44:11 +01:00
|
|
|
meson:
|
2019-02-19 18:37:53 +01:00
|
|
|
extends: .common-build-and-test
|
2019-02-22 10:22:49 +01:00
|
|
|
variables:
|
|
|
|
PIGLIT_DIR: /root/piglit
|
|
|
|
XTEST_DIR: /root/xts
|
2018-04-25 19:39:18 +02:00
|
|
|
script:
|
2020-02-10 18:48:05 +01:00
|
|
|
- meson -Dc_args="-fno-common" -Dprefix=/usr -Dxephyr=true -Dwerror=true $MESON_EXTRA_OPTIONS build/
|
2019-12-23 09:35:09 +01:00
|
|
|
- ninja -j4 -C build/ install
|
|
|
|
- ninja -j4 -C build/ test
|
2019-10-04 10:29:31 +02:00
|
|
|
- .gitlab-ci/manpages-check
|
2020-02-10 18:48:05 +01:00
|
|
|
|
|
|
|
meson-noglamor:
|
|
|
|
extends: meson
|
|
|
|
variables:
|
|
|
|
MESON_EXTRA_OPTIONS: >
|
|
|
|
-Dglamor=false
|