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'
|
|
|
|
|
2019-03-26 20:58:39 +01:00
|
|
|
DEBIAN_TAG: "2019-03-27-2"
|
2019-03-18 11:09:29 +01:00
|
|
|
IMAGE_LOCAL: "$CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_TAG"
|
|
|
|
|
|
|
|
include:
|
|
|
|
- project: 'wayland/ci-templates'
|
|
|
|
ref: c73dae8b84697ef18e2dbbf4fed7386d9652b0cd
|
|
|
|
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-03-29 10:12:40 +01:00
|
|
|
# Retry jobs after runner system failures
|
|
|
|
.retry: &retry
|
|
|
|
retry:
|
|
|
|
max: 2
|
|
|
|
when:
|
|
|
|
- runner_system_failure
|
|
|
|
|
2018-12-14 11:04:24 +01:00
|
|
|
debian-testing:
|
2019-03-18 11:09:29 +01:00
|
|
|
extends: .debian@container-ifnot-exists
|
|
|
|
stage: docker-image
|
2019-03-29 10:12:40 +01:00
|
|
|
<<: *retry
|
2018-12-14 11:04:24 +01:00
|
|
|
|
2019-02-19 18:37:53 +01:00
|
|
|
.common-build-and-test:
|
2019-03-29 10:12:40 +01:00
|
|
|
<<: *retry
|
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/
|
2019-02-14 17:39:24 +01:00
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- ccache/
|
2018-12-13 18:29:31 +01:00
|
|
|
variables:
|
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"
|
|
|
|
- export CCACHE_DIR="$PWD/ccache"
|
|
|
|
- export CCACHE_COMPILERCHECK=content
|
2019-02-19 18:37:53 +01:00
|
|
|
- export PATH="/usr/lib/ccache:$PATH"
|
2019-02-14 17:39:24 +01:00
|
|
|
- ccache --zero-stats
|
|
|
|
- ccache --show-stats
|
2019-02-19 18:37:53 +01:00
|
|
|
after_script:
|
|
|
|
- CCACHE_DIR="$PWD/ccache" ccache --show-stats
|
|
|
|
|
|
|
|
autotools-build-and-test:
|
|
|
|
extends: .common-build-and-test
|
|
|
|
script:
|
|
|
|
- mkdir build/
|
|
|
|
- cd build/
|
2019-02-22 10:22:49 +01:00
|
|
|
- ../autogen.sh --prefix=/usr
|
|
|
|
- make -j$(nproc) distcheck
|
2019-03-29 10:01:20 +01:00
|
|
|
- PIGLIT_DIR=/root/piglit XTEST_DIR=/root/xts make -j$(nproc) check
|
2019-02-19 18:37:53 +01:00
|
|
|
|
|
|
|
meson-build-and-test:
|
|
|
|
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:
|
2019-03-26 19:30:55 +01:00
|
|
|
- meson -Dprefix=/usr -Dxephyr=true build/
|
2019-03-29 09:58:21 +01:00
|
|
|
- ninja -C build/ install
|
|
|
|
- ninja -C build/ test
|