mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-08 13:38:40 +02:00
ci: use latest templates, and API
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
This commit is contained in:
parent
d0eb8d58a3
commit
4df2ac731f
2 changed files with 195 additions and 174 deletions
236
.gitlab-ci.yml
236
.gitlab-ci.yml
|
|
@ -24,23 +24,23 @@
|
||||||
# <distribution>:<version>@activity:
|
# <distribution>:<version>@activity:
|
||||||
# e.g. fedora:31@build-default
|
# e.g. fedora:31@build-default
|
||||||
|
|
||||||
.templates_sha: &template_sha 8410d3382c4ba5e83da76a027cb332169f2a95ad # see https://docs.gitlab.com/ee/ci/yaml/#includefile
|
.templates_sha: &template_sha 395535ce90eb48e260c0dff12c35d9237e22c539 # see https://docs.gitlab.com/ee/ci/yaml/#includefile
|
||||||
|
|
||||||
include:
|
include:
|
||||||
# Alpine container builder template
|
# Alpine container builder template
|
||||||
- project: 'wayland/ci-templates'
|
- project: 'freedesktop/ci-templates'
|
||||||
ref: *template_sha
|
ref: *template_sha
|
||||||
file: '/templates/alpine.yml'
|
file: '/templates/alpine.yml'
|
||||||
# Arch container builder template
|
# Arch container builder template
|
||||||
- project: 'wayland/ci-templates'
|
- project: 'freedesktop/ci-templates'
|
||||||
ref: *template_sha
|
ref: *template_sha
|
||||||
file: '/templates/arch.yml'
|
file: '/templates/arch.yml'
|
||||||
# Fedora container builder template
|
# Fedora container builder template
|
||||||
- project: 'wayland/ci-templates'
|
- project: 'freedesktop/ci-templates'
|
||||||
ref: *template_sha
|
ref: *template_sha
|
||||||
file: '/templates/fedora.yml'
|
file: '/templates/fedora.yml'
|
||||||
# Ubuntu container builder template
|
# Ubuntu container builder template
|
||||||
- project: 'wayland/ci-templates'
|
- project: 'freedesktop/ci-templates'
|
||||||
ref: *template_sha
|
ref: *template_sha
|
||||||
file: '/templates/ubuntu.yml'
|
file: '/templates/ubuntu.yml'
|
||||||
|
|
||||||
|
|
@ -64,36 +64,30 @@ variables:
|
||||||
# See the documentation here: #
|
# See the documentation here: #
|
||||||
# https://wayland.freedesktop.org/libinput/doc/latest/building_libinput.html #
|
# https://wayland.freedesktop.org/libinput/doc/latest/building_libinput.html #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
FEDORA_RPMS: 'git gcc gcc-c++ pkgconf-pkg-config meson check-devel libudev-devel libevdev-devel doxygen graphviz python3-sphinx python3-recommonmark python3-sphinx_rtd_theme python3-pytest-xdist libwacom-devel cairo-devel gtk3-devel glib2-devel mtdev-devel diffutils'
|
FEDORA_PACKAGES: 'git gcc gcc-c++ pkgconf-pkg-config meson check-devel libudev-devel libevdev-devel doxygen graphviz python3-sphinx python3-recommonmark python3-sphinx_rtd_theme python3-pytest-xdist libwacom-devel cairo-devel gtk3-devel glib2-devel mtdev-devel diffutils'
|
||||||
FEDORA_QEMU_RPMS: 'git gcc gcc-c++ pkgconf-pkg-config meson check-devel libudev-devel libevdev-devel doxygen graphviz python3-sphinx python3-recommonmark python3-sphinx_rtd_theme python3-pytest-xdist libwacom-devel cairo-devel gtk3-devel glib2-devel mtdev-devel diffutils valgrind'
|
FEDORA_QEMU_RPMS: 'git gcc gcc-c++ pkgconf-pkg-config meson check-devel libudev-devel libevdev-devel doxygen graphviz python3-sphinx python3-recommonmark python3-sphinx_rtd_theme python3-pytest-xdist libwacom-devel cairo-devel gtk3-devel glib2-devel mtdev-devel diffutils valgrind'
|
||||||
UBUNTU_CUSTOM_DEBS: 'git gcc g++ pkg-config meson check libudev-dev libevdev-dev doxygen graphviz python3-sphinx python3-recommonmark python3-sphinx-rtd-theme python3-pytest-xdist libwacom-dev libcairo2-dev libgtk-3-dev libglib2.0-dev libmtdev-dev'
|
UBUNTU_PACKAGES: 'git gcc g++ pkg-config meson check libudev-dev libevdev-dev doxygen graphviz python3-sphinx python3-recommonmark python3-sphinx-rtd-theme python3-pytest-xdist libwacom-dev libcairo2-dev libgtk-3-dev libglib2.0-dev libmtdev-dev'
|
||||||
ARCH_PKGS: 'git gcc pkgconfig meson check libsystemd libevdev doxygen graphviz python-sphinx python-recommonmark python-sphinx_rtd_theme python-pytest-xdist libwacom gtk3 mtdev diffutils'
|
ARCH_PACKAGES: 'git gcc pkgconfig meson check libsystemd libevdev doxygen graphviz python-sphinx python-recommonmark python-sphinx_rtd_theme python-pytest-xdist libwacom gtk3 mtdev diffutils'
|
||||||
FREEBSD_BUILD_PKGS: 'meson'
|
FREEBSD_BUILD_PKGS: 'meson'
|
||||||
FREEBSD_PKGS: 'libepoll-shim libudev-devd libevdev libwacom gtk3 libmtdev '
|
FREEBSD_PKGS: 'libepoll-shim libudev-devd libevdev libwacom gtk3 libmtdev '
|
||||||
ALPINE_PKGS: 'git gcc build-base pkgconfig meson check-dev eudev-dev libevdev-dev libwacom-dev cairo-dev gtk+3.0-dev mtdev-dev bash'
|
ALPINE_PACKAGES: 'git gcc build-base pkgconfig meson check-dev eudev-dev libevdev-dev libwacom-dev cairo-dev gtk+3.0-dev mtdev-dev bash'
|
||||||
############################ end of package lists #############################
|
############################ end of package lists #############################
|
||||||
|
|
||||||
# these tags should be updated each time the list of packages is updated
|
# these tags should be updated each time the list of packages is updated
|
||||||
# changing these will force rebuilding the associated image
|
# changing these will force rebuilding the associated image
|
||||||
# Note: these tags have no meaning and are not tied to a particular
|
# Note: these tags have no meaning and are not tied to a particular
|
||||||
# libinput version
|
# libinput version
|
||||||
FEDORA_TAG: '2020-03-16.0'
|
FEDORA_TAG: '2020-03-17.0'
|
||||||
UBUNTU_TAG: '2020-03-16.0'
|
UBUNTU_TAG: '2020-03-17.0'
|
||||||
ARCH_TAG: '2020-03-16.0'
|
ARCH_TAG: '2020-03-17.0'
|
||||||
ALPINE_TAG: '2020-02-26.0'
|
ALPINE_TAG: '2020-03-17.0'
|
||||||
FREEBSD_TAG: '2020-02-26.0'
|
FREEBSD_TAG: '2020-03-17.0'
|
||||||
QEMU_TAG: 'qemu-vm-2020-03-16.0'
|
QEMU_TAG: 'qemu-vm-2020-03-17.0'
|
||||||
|
|
||||||
UBUNTU_EXEC: "bash .gitlab-ci/ubuntu_install.sh $UBUNTU_CUSTOM_DEBS"
|
UBUNTU_EXEC: "bash .gitlab-ci/ubuntu_install.sh $UBUNTU_CUSTOM_DEBS"
|
||||||
|
|
||||||
UPSTREAM_REPO: libinput/libinput
|
|
||||||
BUILDAH_IMAGE: $CI_REGISTRY/wayland/ci-templates/buildah:latest
|
|
||||||
FEDORA_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/fedora/$FEDORA_VERSION:$FEDORA_TAG
|
|
||||||
UBUNTU_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/ubuntu/$UBUNTU_VERSION:$UBUNTU_TAG
|
|
||||||
ARCH_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/arch/$ARCH_VERSION:$ARCH_TAG
|
|
||||||
ALPINE_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/alpine/$ALPINE_VERSION:$ALPINE_TAG
|
|
||||||
FREEBSD_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/freebsd/11.2:$FREEBSD_TAG
|
FREEBSD_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/freebsd/11.2:$FREEBSD_TAG
|
||||||
QEMU_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/fedora/$FEDORA_VERSION:$QEMU_TAG
|
FDO_UPSTREAM_REPO: libinput/libinput
|
||||||
|
|
||||||
MESON_BUILDDIR: "build dir"
|
MESON_BUILDDIR: "build dir"
|
||||||
NINJA_ARGS: ''
|
NINJA_ARGS: ''
|
||||||
|
|
@ -175,128 +169,126 @@ check-commit:
|
||||||
# is too old or if it is missing some dependencies.
|
# is too old or if it is missing some dependencies.
|
||||||
#
|
#
|
||||||
|
|
||||||
.pull_upstream_or_rebuild:
|
.rebuild_for_schedule:
|
||||||
before_script:
|
before_script:
|
||||||
# log in to the registry
|
|
||||||
- podman login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
|
||||||
|
|
||||||
# get the full container image name (DISTRIB_VERSION still has indirections)
|
|
||||||
- IMAGE=$(eval echo "$DISTRIB_NAME/$DISTRIB_VERSION:$TAG")
|
|
||||||
|
|
||||||
# force rebuild if schedule, reuse otherwise
|
# force rebuild if schedule, reuse otherwise
|
||||||
- if [[ $CI_PIPELINE_SOURCE == "schedule" ]] ; then touch .scheduled; fi
|
- if [[ $CI_PIPELINE_SOURCE == "schedule" ]] ; then export FDO_FORCE_REBUILD=1; fi
|
||||||
# pull the latest upstream image if it exists
|
|
||||||
- test -e .scheduled || skopeo copy --dest-creds $CI_REGISTRY_USER:$CI_REGISTRY_PASSWORD
|
|
||||||
docker://$CI_REGISTRY/$UPSTREAM_REPO/$IMAGE
|
|
||||||
docker://$CI_REGISTRY_IMAGE/$IMAGE && exit 0 || true ;
|
|
||||||
|
|
||||||
# check if our image is already in the current registry
|
|
||||||
- test -e .scheduled || skopeo inspect docker://$CI_REGISTRY_IMAGE/$IMAGE > /dev/null && exit 0 || true ;
|
|
||||||
|
|
||||||
fedora:30@qemu-prep:
|
fedora:30@qemu-prep:
|
||||||
extends:
|
extends:
|
||||||
- .fedora@qemu-build
|
- .fdo.qemu-build@fedora
|
||||||
- .policy
|
- .policy
|
||||||
- .pull_upstream_or_rebuild
|
- .rebuild_for_schedule
|
||||||
stage: prep
|
stage: prep
|
||||||
tags:
|
tags:
|
||||||
- kvm
|
- kvm
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
FEDORA_VERSION: 30
|
FDO_DISTRIBUTION_VERSION: 30
|
||||||
FEDORA_TAG: $QEMU_TAG
|
FDO_DISTRIBUTION_TAG: $QEMU_TAG
|
||||||
FEDORA_RPMS: $FEDORA_QEMU_RPMS
|
FDO_DISTRIBUTION_PACKAGES: $FEDORA_QEMU_RPMS
|
||||||
DISTRIB_NAME: fedora
|
|
||||||
DISTRIB_VERSION: $FEDORA_VERSION
|
|
||||||
TAG: $QEMU_TAG
|
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
|
||||||
fedora:30@container-prep:
|
fedora:30@container-prep:
|
||||||
extends:
|
extends:
|
||||||
- .fedora@container-build
|
- .fdo.container-build@fedora
|
||||||
- .policy
|
- .policy
|
||||||
- .pull_upstream_or_rebuild
|
- .rebuild_for_schedule
|
||||||
stage: prep
|
stage: prep
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
FEDORA_VERSION: '30'
|
FDO_DISTRIBUTION_VERSION: '30'
|
||||||
DISTRIB_NAME: fedora
|
FDO_DISTRIBUTION_PACKAGES: $FEDORA_PACKAGES
|
||||||
DISTRIB_VERSION: $FEDORA_VERSION
|
FDO_DISTRIBUTION_TAG: $FEDORA_TAG
|
||||||
TAG: $FEDORA_TAG
|
|
||||||
|
|
||||||
fedora:31@container-prep:
|
fedora:31@container-prep:
|
||||||
extends:
|
extends:
|
||||||
- .fedora@container-build
|
- .fdo.container-build@fedora
|
||||||
- .policy
|
- .policy
|
||||||
- .pull_upstream_or_rebuild
|
- .rebuild_for_schedule
|
||||||
stage: prep
|
stage: prep
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
FEDORA_VERSION: '31'
|
FDO_DISTRIBUTION_VERSION: '31'
|
||||||
DISTRIB_NAME: fedora
|
FDO_DISTRIBUTION_PACKAGES: $FEDORA_PACKAGES
|
||||||
DISTRIB_VERSION: $FEDORA_VERSION
|
FDO_DISTRIBUTION_TAG: $FEDORA_TAG
|
||||||
TAG: $FEDORA_TAG
|
|
||||||
|
|
||||||
ubuntu:19.10@container-prep:
|
ubuntu:19.10@container-prep:
|
||||||
extends:
|
extends:
|
||||||
- .ubuntu@container-build
|
- .fdo.container-build@ubuntu
|
||||||
- .policy
|
- .policy
|
||||||
- .pull_upstream_or_rebuild
|
- .rebuild_for_schedule
|
||||||
stage: prep
|
stage: prep
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
UBUNTU_VERSION: '19.10'
|
FDO_DISTRIBUTION_VERSION: '19.10'
|
||||||
DISTRIB_NAME: ubuntu
|
FDO_DISTRIBUTION_PACKAGES: $UBUNTU_PACKAGES
|
||||||
DISTRIB_VERSION: $UBUNTU_VERSION
|
FDO_DISTRIBUTION_TAG: $UBUNTU_TAG
|
||||||
TAG: $UBUNTU_TAG
|
|
||||||
|
|
||||||
ubuntu:19.04@container-prep:
|
ubuntu:19.04@container-prep:
|
||||||
extends:
|
extends:
|
||||||
- .ubuntu@container-build
|
- .fdo.container-build@ubuntu
|
||||||
- .policy
|
- .policy
|
||||||
- .pull_upstream_or_rebuild
|
- .rebuild_for_schedule
|
||||||
stage: prep
|
stage: prep
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
UBUNTU_VERSION: '19.04'
|
FDO_DISTRIBUTION_VERSION: '19.04'
|
||||||
DISTRIB_NAME: ubuntu
|
FDO_DISTRIBUTION_PACKAGES: $UBUNTU_PACKAGES
|
||||||
DISTRIB_VERSION: $UBUNTU_VERSION
|
FDO_DISTRIBUTION_TAG: $UBUNTU_TAG
|
||||||
TAG: $UBUNTU_TAG
|
|
||||||
|
|
||||||
arch:rolling@container-prep:
|
arch:rolling@container-prep:
|
||||||
extends:
|
extends:
|
||||||
- .arch@container-build
|
- .fdo.container-build@arch
|
||||||
- .policy
|
- .policy
|
||||||
- .pull_upstream_or_rebuild
|
- .rebuild_for_schedule
|
||||||
stage: prep
|
stage: prep
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
ARCH_VERSION: 'rolling'
|
FDO_DISTRIBUTION_VERSION: 'rolling'
|
||||||
DISTRIB_NAME: arch
|
FDO_DISTRIBUTION_PACKAGES: $ARCH_PACKAGES
|
||||||
DISTRIB_VERSION: $ARCH_VERSION
|
FDO_DISTRIBUTION_TAG: $ARCH_TAG
|
||||||
TAG: $ARCH_TAG
|
|
||||||
|
|
||||||
alpine:latest@container-prep:
|
alpine:latest@container-prep:
|
||||||
extends:
|
extends:
|
||||||
- .alpine@container-build
|
- .fdo.container-build@alpine
|
||||||
- .policy
|
- .policy
|
||||||
- .pull_upstream_or_rebuild
|
- .rebuild_for_schedule
|
||||||
stage: prep
|
stage: prep
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
ALPINE_VERSION: 'latest'
|
FDO_DISTRIBUTION_VERSION: 'latest'
|
||||||
DISTRIB_NAME: alpine
|
FDO_DISTRIBUTION_PACKAGES: $ALPINE_PACKAGES
|
||||||
DISTRIB_VERSION: $ALPINE_VERSION
|
FDO_DISTRIBUTION_TAG: $ALPINE_TAG
|
||||||
TAG: $ALPINE_TAG
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Note that we want to use the latest buildah image, and for that
|
||||||
|
# we use one of the .fdo.container-build@distribution by replacing the
|
||||||
|
# `script`.
|
||||||
.freebsd@container-prep:
|
.freebsd@container-prep:
|
||||||
extends:
|
extends:
|
||||||
- .policy
|
- .policy
|
||||||
- .pull_upstream_or_rebuild
|
- .fdo.container-build@fedora
|
||||||
stage: prep
|
stage: prep
|
||||||
image: $BUILDAH_IMAGE
|
|
||||||
script:
|
script:
|
||||||
|
# log in to the registry
|
||||||
|
- podman login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
||||||
|
|
||||||
|
# get the full container image name
|
||||||
|
- export IMAGE=freebsd/$FREEBSD_VERSION:$FREEBSD_TAG
|
||||||
|
|
||||||
|
# force rebuild if schedule, reuse otherwise
|
||||||
|
- if [[ $CI_PIPELINE_SOURCE == "schedule" ]] ; then touch .scheduled; fi
|
||||||
|
|
||||||
|
# pull the latest upstream image if it exists
|
||||||
|
- test -e .scheduled || skopeo copy --dest-creds $CI_REGISTRY_USER:$CI_REGISTRY_PASSWORD
|
||||||
|
docker://$CI_REGISTRY/$FDO_UPSTREAM_REPO/$IMAGE
|
||||||
|
docker://$CI_REGISTRY_IMAGE/$IMAGE && exit 0 || true ;
|
||||||
|
|
||||||
|
# check if our image is already in the current registry
|
||||||
|
- test -e .scheduled || skopeo inspect docker://$CI_REGISTRY_IMAGE/$IMAGE > /dev/null && exit 0 || true ;
|
||||||
|
|
||||||
- export BUILDAH_RUN="buildah run --isolation chroot"
|
- export BUILDAH_RUN="buildah run --isolation chroot"
|
||||||
- export BUILDAH_COMMIT="buildah commit --format docker"
|
- export BUILDAH_COMMIT="buildah commit --format docker"
|
||||||
- buildcntr=$(buildah from --quiet myfreeweb/freebsd-cross:latest)
|
- buildcntr=$(buildah from --quiet myfreeweb/freebsd-cross:latest)
|
||||||
|
|
@ -321,9 +313,6 @@ freebsd:11.2@container-prep:
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
FREEBSD_VERSION: "11.2"
|
FREEBSD_VERSION: "11.2"
|
||||||
DISTRIB_NAME: freebsd
|
|
||||||
DISTRIB_VERSION: $FREEBSD_VERSION
|
|
||||||
TAG: $FREEBSD_TAG
|
|
||||||
|
|
||||||
|
|
||||||
#################################################################
|
#################################################################
|
||||||
|
|
@ -338,11 +327,14 @@ freebsd:11.2@container-prep:
|
||||||
# the registry and will remove any that are not tagged with the provided
|
# the registry and will remove any that are not tagged with the provided
|
||||||
# $container_image:$tag
|
# $container_image:$tag
|
||||||
#
|
#
|
||||||
|
# Note that we want to use the latest buildah image, and for that
|
||||||
|
# we use one of the .fdo.container-build@distribution by replacing the
|
||||||
|
# `script`.
|
||||||
.container-clean:
|
.container-clean:
|
||||||
extends:
|
extends:
|
||||||
|
- .fdo.container-build@fedora
|
||||||
- .policy
|
- .policy
|
||||||
stage: container_clean
|
stage: container_clean
|
||||||
image: $BUILDAH_IMAGE
|
|
||||||
script:
|
script:
|
||||||
# get the full container image name (CURRENT_CONTAINER_IMAGE still has indirections)
|
# get the full container image name (CURRENT_CONTAINER_IMAGE still has indirections)
|
||||||
- CONTAINER_IMAGE=$(eval echo "$CURRENT_CONTAINER_IMAGE")
|
- CONTAINER_IMAGE=$(eval echo "$CURRENT_CONTAINER_IMAGE")
|
||||||
|
|
@ -414,7 +406,9 @@ fedora:30@container-clean:
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
FEDORA_VERSION: '30'
|
FEDORA_VERSION: '30'
|
||||||
CURRENT_CONTAINER_IMAGE: $FEDORA_CONTAINER_IMAGE
|
CURRENT_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/fedora/$FDO_DISTRIBUTION_VERSION:$FDO_DISTRIBUTION_TAG
|
||||||
|
FDO_DISTRIBUTION_VERSION: '30'
|
||||||
|
FDO_DISTRIBUTION_TAG: $FEDORA_TAG
|
||||||
|
|
||||||
fedora:31@container-clean:
|
fedora:31@container-clean:
|
||||||
extends:
|
extends:
|
||||||
|
|
@ -422,7 +416,9 @@ fedora:31@container-clean:
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
FEDORA_VERSION: '31'
|
FEDORA_VERSION: '31'
|
||||||
CURRENT_CONTAINER_IMAGE: $FEDORA_CONTAINER_IMAGE
|
CURRENT_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/fedora/$FDO_DISTRIBUTION_VERSION:$FDO_DISTRIBUTION_TAG
|
||||||
|
FDO_DISTRIBUTION_VERSION: '31'
|
||||||
|
FDO_DISTRIBUTION_TAG: $FEDORA_TAG
|
||||||
|
|
||||||
ubuntu:19.10@container-clean:
|
ubuntu:19.10@container-clean:
|
||||||
extends:
|
extends:
|
||||||
|
|
@ -430,7 +426,9 @@ ubuntu:19.10@container-clean:
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
UBUNTU_VERSION: '19.10'
|
UBUNTU_VERSION: '19.10'
|
||||||
CURRENT_CONTAINER_IMAGE: $UBUNTU_CONTAINER_IMAGE
|
CURRENT_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/ubuntu/$FDO_DISTRIBUTION_VERSION:$FDO_DISTRIBUTION_TAG
|
||||||
|
FDO_DISTRIBUTION_VERSION: '19.10'
|
||||||
|
FDO_DISTRIBUTION_TAG: $UBUNTU_TAG
|
||||||
|
|
||||||
ubuntu:19.04@container-clean:
|
ubuntu:19.04@container-clean:
|
||||||
extends:
|
extends:
|
||||||
|
|
@ -438,7 +436,9 @@ ubuntu:19.04@container-clean:
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
UBUNTU_VERSION: '19.04'
|
UBUNTU_VERSION: '19.04'
|
||||||
CURRENT_CONTAINER_IMAGE: $UBUNTU_CONTAINER_IMAGE
|
CURRENT_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/ubuntu/$FDO_DISTRIBUTION_VERSION:$FDO_DISTRIBUTION_TAG
|
||||||
|
FDO_DISTRIBUTION_VERSION: '19.04'
|
||||||
|
FDO_DISTRIBUTION_TAG: $UBUNTU_TAG
|
||||||
|
|
||||||
arch:rolling@container-clean:
|
arch:rolling@container-clean:
|
||||||
extends:
|
extends:
|
||||||
|
|
@ -446,7 +446,9 @@ arch:rolling@container-clean:
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
ARCH_VERSION: 'rolling'
|
ARCH_VERSION: 'rolling'
|
||||||
CURRENT_CONTAINER_IMAGE: $ARCH_CONTAINER_IMAGE
|
CURRENT_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/arch/$FDO_DISTRIBUTION_VERSION:$FDO_DISTRIBUTION_TAG
|
||||||
|
FDO_DISTRIBUTION_VERSION: 'rolling'
|
||||||
|
FDO_DISTRIBUTION_TAG: $ARCH_TAG
|
||||||
|
|
||||||
alpine:latest@container-clean:
|
alpine:latest@container-clean:
|
||||||
extends:
|
extends:
|
||||||
|
|
@ -454,7 +456,9 @@ alpine:latest@container-clean:
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
ALPINE_VERSION: 'latest'
|
ALPINE_VERSION: 'latest'
|
||||||
CURRENT_CONTAINER_IMAGE: $ALPINE_CONTAINER_IMAGE
|
CURRENT_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/alpine/$FDO_DISTRIBUTION_VERSION:$FDO_DISTRIBUTION_TAG
|
||||||
|
FDO_DISTRIBUTION_VERSION: 'latest'
|
||||||
|
FDO_DISTRIBUTION_TAG: $ALPINE_TAG
|
||||||
|
|
||||||
|
|
||||||
freebsd:11.2@container-clean:
|
freebsd:11.2@container-clean:
|
||||||
|
|
@ -498,6 +502,7 @@ freebsd:11.2@container-clean:
|
||||||
.test-suite-vm:
|
.test-suite-vm:
|
||||||
extends:
|
extends:
|
||||||
- .policy
|
- .policy
|
||||||
|
- .fdo.distribution-image@fedora
|
||||||
stage: VM
|
stage: VM
|
||||||
tags:
|
tags:
|
||||||
- kvm
|
- kvm
|
||||||
|
|
@ -553,10 +558,11 @@ freebsd:11.2@container-clean:
|
||||||
|
|
||||||
|
|
||||||
.fedora:30@test-suite-vm:
|
.fedora:30@test-suite-vm:
|
||||||
extends: .test-suite-vm
|
extends:
|
||||||
image: $QEMU_CONTAINER_IMAGE
|
- .test-suite-vm
|
||||||
variables:
|
variables:
|
||||||
FEDORA_VERSION: 30
|
FDO_DISTRIBUTION_VERSION: 30
|
||||||
|
FDO_DISTRIBUTION_TAG: $QEMU_TAG
|
||||||
needs: ['fedora:30@qemu-prep']
|
needs: ['fedora:30@qemu-prep']
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -679,10 +685,11 @@ vm-valgrind-pointer:
|
||||||
|
|
||||||
.fedora-build@template:
|
.fedora-build@template:
|
||||||
extends:
|
extends:
|
||||||
|
- .fdo.distribution-image@fedora
|
||||||
- .build@template
|
- .build@template
|
||||||
image: $FEDORA_CONTAINER_IMAGE
|
|
||||||
variables:
|
variables:
|
||||||
FEDORA_VERSION: 30
|
FDO_DISTRIBUTION_VERSION: '30'
|
||||||
|
FDO_DISTRIBUTION_TAG: $FEDORA_TAG
|
||||||
needs: ['fedora:30@container-prep']
|
needs: ['fedora:30@container-prep']
|
||||||
|
|
||||||
default-build-release@fedora:30:
|
default-build-release@fedora:30:
|
||||||
|
|
@ -805,9 +812,10 @@ fedora:30@default-build:
|
||||||
stage: distro
|
stage: distro
|
||||||
extends:
|
extends:
|
||||||
- .build@template
|
- .build@template
|
||||||
image: $FEDORA_CONTAINER_IMAGE
|
- .fdo.distribution-image@fedora
|
||||||
variables:
|
variables:
|
||||||
FEDORA_VERSION: '30'
|
FDO_DISTRIBUTION_VERSION: '30'
|
||||||
|
FDO_DISTRIBUTION_TAG: $FEDORA_TAG
|
||||||
needs: ['fedora:30@container-prep']
|
needs: ['fedora:30@container-prep']
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -815,9 +823,10 @@ fedora:31@default-build:
|
||||||
stage: distro
|
stage: distro
|
||||||
extends:
|
extends:
|
||||||
- .build@template
|
- .build@template
|
||||||
image: $FEDORA_CONTAINER_IMAGE
|
- .fdo.distribution-image@fedora
|
||||||
variables:
|
variables:
|
||||||
FEDORA_VERSION: '31'
|
FDO_DISTRIBUTION_VERSION: '31'
|
||||||
|
FDO_DISTRIBUTION_TAG: $FEDORA_TAG
|
||||||
needs: ['fedora:31@container-prep']
|
needs: ['fedora:31@container-prep']
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -825,9 +834,10 @@ ubuntu:19.10@default-build:
|
||||||
stage: distro
|
stage: distro
|
||||||
extends:
|
extends:
|
||||||
- .build@template
|
- .build@template
|
||||||
image: $UBUNTU_CONTAINER_IMAGE
|
- .fdo.distribution-image@ubuntu
|
||||||
variables:
|
variables:
|
||||||
UBUNTU_VERSION: '19.10'
|
FDO_DISTRIBUTION_VERSION: '19.10'
|
||||||
|
FDO_DISTRIBUTION_TAG: $UBUNTU_TAG
|
||||||
needs: ['ubuntu:19.10@container-prep']
|
needs: ['ubuntu:19.10@container-prep']
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -835,9 +845,10 @@ ubuntu:19.04@default-build:
|
||||||
stage: distro
|
stage: distro
|
||||||
extends:
|
extends:
|
||||||
- .build@template
|
- .build@template
|
||||||
image: $UBUNTU_CONTAINER_IMAGE
|
- .fdo.distribution-image@ubuntu
|
||||||
variables:
|
variables:
|
||||||
UBUNTU_VERSION: '19.04'
|
FDO_DISTRIBUTION_VERSION: '19.04'
|
||||||
|
FDO_DISTRIBUTION_TAG: $UBUNTU_TAG
|
||||||
needs: ['ubuntu:19.04@container-prep']
|
needs: ['ubuntu:19.04@container-prep']
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -845,9 +856,10 @@ arch:rolling@default-build:
|
||||||
stage: distro
|
stage: distro
|
||||||
extends:
|
extends:
|
||||||
- .build@template
|
- .build@template
|
||||||
image: $ARCH_CONTAINER_IMAGE
|
- .fdo.distribution-image@arch
|
||||||
variables:
|
variables:
|
||||||
ARCH_VERSION: 'rolling'
|
FDO_DISTRIBUTION_VERSION: 'rolling'
|
||||||
|
FDO_DISTRIBUTION_TAG: $ARCH_TAG
|
||||||
needs: ['arch:rolling@container-prep']
|
needs: ['arch:rolling@container-prep']
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -855,9 +867,10 @@ alpine:latest@default-build:
|
||||||
stage: distro
|
stage: distro
|
||||||
extends:
|
extends:
|
||||||
- .build@template
|
- .build@template
|
||||||
image: $ALPINE_CONTAINER_IMAGE
|
- .fdo.distribution-image@alpine
|
||||||
variables:
|
variables:
|
||||||
ALPINE_VERSION: 'latest'
|
FDO_DISTRIBUTION_VERSION: 'latest'
|
||||||
|
FDO_DISTRIBUTION_TAG: $ALPINE_TAG
|
||||||
MESON_ARGS: '-Ddocumentation=false' # alpine does not have python-recommonmark
|
MESON_ARGS: '-Ddocumentation=false' # alpine does not have python-recommonmark
|
||||||
MESON_TEST_ARGS: '' # litest-selftest fails on musl
|
MESON_TEST_ARGS: '' # litest-selftest fails on musl
|
||||||
needs: ['alpine:latest@container-prep']
|
needs: ['alpine:latest@container-prep']
|
||||||
|
|
@ -887,9 +900,10 @@ freebsd:11.2@default-build:
|
||||||
#
|
#
|
||||||
|
|
||||||
wayland-web:
|
wayland-web:
|
||||||
image: $BUILDAH_IMAGE
|
image: alpine:latest
|
||||||
stage: deploy
|
stage: deploy
|
||||||
script:
|
script:
|
||||||
|
- apk add curl
|
||||||
# Requirements:
|
# Requirements:
|
||||||
# - variable WAYLAND_WEB_TOKEN defined as type File in libinput's CI/CD settings
|
# - variable WAYLAND_WEB_TOKEN defined as type File in libinput's CI/CD settings
|
||||||
# - content of that file is the token value, as generated by the Pipeline Triggers
|
# - content of that file is the token value, as generated by the Pipeline Triggers
|
||||||
|
|
|
||||||
|
|
@ -24,12 +24,12 @@
|
||||||
# <distribution>:<version>@activity:
|
# <distribution>:<version>@activity:
|
||||||
# e.g. fedora:31@build-default
|
# e.g. fedora:31@build-default
|
||||||
|
|
||||||
.templates_sha: &template_sha 8410d3382c4ba5e83da76a027cb332169f2a95ad # see https://docs.gitlab.com/ee/ci/yaml/#includefile
|
.templates_sha: &template_sha 395535ce90eb48e260c0dff12c35d9237e22c539 # see https://docs.gitlab.com/ee/ci/yaml/#includefile
|
||||||
|
|
||||||
include:
|
include:
|
||||||
{% for template in templates %}
|
{% for template in templates %}
|
||||||
# {{ template.capitalize() }} container builder template
|
# {{ template.capitalize() }} container builder template
|
||||||
- project: 'wayland/ci-templates'
|
- project: 'freedesktop/ci-templates'
|
||||||
ref: *template_sha
|
ref: *template_sha
|
||||||
file: '/templates/{{template}}.yml'
|
file: '/templates/{{template}}.yml'
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
@ -54,36 +54,30 @@ variables:
|
||||||
# See the documentation here: #
|
# See the documentation here: #
|
||||||
# https://wayland.freedesktop.org/libinput/doc/latest/building_libinput.html #
|
# https://wayland.freedesktop.org/libinput/doc/latest/building_libinput.html #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
FEDORA_RPMS: 'git gcc gcc-c++ pkgconf-pkg-config meson check-devel libudev-devel libevdev-devel doxygen graphviz python3-sphinx python3-recommonmark python3-sphinx_rtd_theme python3-pytest-xdist libwacom-devel cairo-devel gtk3-devel glib2-devel mtdev-devel diffutils'
|
FEDORA_PACKAGES: 'git gcc gcc-c++ pkgconf-pkg-config meson check-devel libudev-devel libevdev-devel doxygen graphviz python3-sphinx python3-recommonmark python3-sphinx_rtd_theme python3-pytest-xdist libwacom-devel cairo-devel gtk3-devel glib2-devel mtdev-devel diffutils'
|
||||||
FEDORA_QEMU_RPMS: 'git gcc gcc-c++ pkgconf-pkg-config meson check-devel libudev-devel libevdev-devel doxygen graphviz python3-sphinx python3-recommonmark python3-sphinx_rtd_theme python3-pytest-xdist libwacom-devel cairo-devel gtk3-devel glib2-devel mtdev-devel diffutils valgrind'
|
FEDORA_QEMU_RPMS: 'git gcc gcc-c++ pkgconf-pkg-config meson check-devel libudev-devel libevdev-devel doxygen graphviz python3-sphinx python3-recommonmark python3-sphinx_rtd_theme python3-pytest-xdist libwacom-devel cairo-devel gtk3-devel glib2-devel mtdev-devel diffutils valgrind'
|
||||||
UBUNTU_CUSTOM_DEBS: 'git gcc g++ pkg-config meson check libudev-dev libevdev-dev doxygen graphviz python3-sphinx python3-recommonmark python3-sphinx-rtd-theme python3-pytest-xdist libwacom-dev libcairo2-dev libgtk-3-dev libglib2.0-dev libmtdev-dev'
|
UBUNTU_PACKAGES: 'git gcc g++ pkg-config meson check libudev-dev libevdev-dev doxygen graphviz python3-sphinx python3-recommonmark python3-sphinx-rtd-theme python3-pytest-xdist libwacom-dev libcairo2-dev libgtk-3-dev libglib2.0-dev libmtdev-dev'
|
||||||
ARCH_PKGS: 'git gcc pkgconfig meson check libsystemd libevdev doxygen graphviz python-sphinx python-recommonmark python-sphinx_rtd_theme python-pytest-xdist libwacom gtk3 mtdev diffutils'
|
ARCH_PACKAGES: 'git gcc pkgconfig meson check libsystemd libevdev doxygen graphviz python-sphinx python-recommonmark python-sphinx_rtd_theme python-pytest-xdist libwacom gtk3 mtdev diffutils'
|
||||||
FREEBSD_BUILD_PKGS: 'meson'
|
FREEBSD_BUILD_PKGS: 'meson'
|
||||||
FREEBSD_PKGS: 'libepoll-shim libudev-devd libevdev libwacom gtk3 libmtdev '
|
FREEBSD_PKGS: 'libepoll-shim libudev-devd libevdev libwacom gtk3 libmtdev '
|
||||||
ALPINE_PKGS: 'git gcc build-base pkgconfig meson check-dev eudev-dev libevdev-dev libwacom-dev cairo-dev gtk+3.0-dev mtdev-dev bash'
|
ALPINE_PACKAGES: 'git gcc build-base pkgconfig meson check-dev eudev-dev libevdev-dev libwacom-dev cairo-dev gtk+3.0-dev mtdev-dev bash'
|
||||||
############################ end of package lists #############################
|
############################ end of package lists #############################
|
||||||
|
|
||||||
# these tags should be updated each time the list of packages is updated
|
# these tags should be updated each time the list of packages is updated
|
||||||
# changing these will force rebuilding the associated image
|
# changing these will force rebuilding the associated image
|
||||||
# Note: these tags have no meaning and are not tied to a particular
|
# Note: these tags have no meaning and are not tied to a particular
|
||||||
# libinput version
|
# libinput version
|
||||||
FEDORA_TAG: '2020-03-16.0'
|
FEDORA_TAG: '2020-03-17.0'
|
||||||
UBUNTU_TAG: '2020-03-16.0'
|
UBUNTU_TAG: '2020-03-17.0'
|
||||||
ARCH_TAG: '2020-03-16.0'
|
ARCH_TAG: '2020-03-17.0'
|
||||||
ALPINE_TAG: '2020-02-26.0'
|
ALPINE_TAG: '2020-03-17.0'
|
||||||
FREEBSD_TAG: '2020-02-26.0'
|
FREEBSD_TAG: '2020-03-17.0'
|
||||||
QEMU_TAG: 'qemu-vm-2020-03-16.0'
|
QEMU_TAG: 'qemu-vm-2020-03-17.0'
|
||||||
|
|
||||||
UBUNTU_EXEC: "bash .gitlab-ci/ubuntu_install.sh $UBUNTU_CUSTOM_DEBS"
|
UBUNTU_EXEC: "bash .gitlab-ci/ubuntu_install.sh $UBUNTU_CUSTOM_DEBS"
|
||||||
|
|
||||||
UPSTREAM_REPO: libinput/libinput
|
|
||||||
BUILDAH_IMAGE: $CI_REGISTRY/wayland/ci-templates/buildah:latest
|
|
||||||
FEDORA_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/fedora/$FEDORA_VERSION:$FEDORA_TAG
|
|
||||||
UBUNTU_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/ubuntu/$UBUNTU_VERSION:$UBUNTU_TAG
|
|
||||||
ARCH_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/arch/$ARCH_VERSION:$ARCH_TAG
|
|
||||||
ALPINE_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/alpine/$ALPINE_VERSION:$ALPINE_TAG
|
|
||||||
FREEBSD_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/freebsd/11.2:$FREEBSD_TAG
|
FREEBSD_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/freebsd/11.2:$FREEBSD_TAG
|
||||||
QEMU_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/fedora/$FEDORA_VERSION:$QEMU_TAG
|
FDO_UPSTREAM_REPO: libinput/libinput
|
||||||
|
|
||||||
MESON_BUILDDIR: "build dir"
|
MESON_BUILDDIR: "build dir"
|
||||||
NINJA_ARGS: ''
|
NINJA_ARGS: ''
|
||||||
|
|
@ -165,65 +159,71 @@ check-commit:
|
||||||
# is too old or if it is missing some dependencies.
|
# is too old or if it is missing some dependencies.
|
||||||
#
|
#
|
||||||
|
|
||||||
.pull_upstream_or_rebuild:
|
.rebuild_for_schedule:
|
||||||
before_script:
|
before_script:
|
||||||
# log in to the registry
|
|
||||||
- podman login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
|
||||||
|
|
||||||
# get the full container image name (DISTRIB_VERSION still has indirections)
|
|
||||||
- IMAGE=$(eval echo "$DISTRIB_NAME/$DISTRIB_VERSION:$TAG")
|
|
||||||
|
|
||||||
# force rebuild if schedule, reuse otherwise
|
# force rebuild if schedule, reuse otherwise
|
||||||
- if [[ $CI_PIPELINE_SOURCE == "schedule" ]] ; then touch .scheduled; fi
|
- if [[ $CI_PIPELINE_SOURCE == "schedule" ]] ; then export FDO_FORCE_REBUILD=1; fi
|
||||||
# pull the latest upstream image if it exists
|
|
||||||
- test -e .scheduled || skopeo copy --dest-creds $CI_REGISTRY_USER:$CI_REGISTRY_PASSWORD
|
|
||||||
docker://$CI_REGISTRY/$UPSTREAM_REPO/$IMAGE
|
|
||||||
docker://$CI_REGISTRY_IMAGE/$IMAGE && exit 0 || true ;
|
|
||||||
|
|
||||||
# check if our image is already in the current registry
|
|
||||||
- test -e .scheduled || skopeo inspect docker://$CI_REGISTRY_IMAGE/$IMAGE > /dev/null && exit 0 || true ;
|
|
||||||
|
|
||||||
fedora:30@qemu-prep:
|
fedora:30@qemu-prep:
|
||||||
extends:
|
extends:
|
||||||
- .fedora@qemu-build
|
- .fdo.qemu-build@fedora
|
||||||
- .policy
|
- .policy
|
||||||
- .pull_upstream_or_rebuild
|
- .rebuild_for_schedule
|
||||||
stage: prep
|
stage: prep
|
||||||
tags:
|
tags:
|
||||||
- kvm
|
- kvm
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
FEDORA_VERSION: 30
|
FDO_DISTRIBUTION_VERSION: 30
|
||||||
FEDORA_TAG: $QEMU_TAG
|
FDO_DISTRIBUTION_TAG: $QEMU_TAG
|
||||||
FEDORA_RPMS: $FEDORA_QEMU_RPMS
|
FDO_DISTRIBUTION_PACKAGES: $FEDORA_QEMU_RPMS
|
||||||
DISTRIB_NAME: fedora
|
|
||||||
DISTRIB_VERSION: $FEDORA_VERSION
|
|
||||||
TAG: $QEMU_TAG
|
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
|
||||||
{% for distro in distributions %}
|
{% for distro in distributions %}
|
||||||
{{distro.name}}:{{distro.version}}@container-prep:
|
{{distro.name}}:{{distro.version}}@container-prep:
|
||||||
extends:
|
extends:
|
||||||
- .{{distro.name}}@container-build
|
- .fdo.container-build@{{distro.name}}
|
||||||
- .policy
|
- .policy
|
||||||
- .pull_upstream_or_rebuild
|
- .rebuild_for_schedule
|
||||||
stage: prep
|
stage: prep
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
{{distro.name.upper()}}_VERSION: '{{distro.version}}'
|
FDO_DISTRIBUTION_VERSION: '{{distro.version}}'
|
||||||
DISTRIB_NAME: {{distro.name}}
|
FDO_DISTRIBUTION_PACKAGES: ${{distro.name.upper()}}_PACKAGES
|
||||||
DISTRIB_VERSION: ${{distro.name.upper()}}_VERSION
|
FDO_DISTRIBUTION_TAG: ${{distro.name.upper()}}_TAG
|
||||||
TAG: ${{distro.name.upper()}}_TAG
|
{% if version == 'ubuntu'%}
|
||||||
|
FDO_DISTRIBUTION_EXEC: $UBUNTU_EXEC
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
|
||||||
|
# Note that we want to use the latest buildah image, and for that
|
||||||
|
# we use one of the .fdo.container-build@distribution by replacing the
|
||||||
|
# `script`.
|
||||||
.freebsd@container-prep:
|
.freebsd@container-prep:
|
||||||
extends:
|
extends:
|
||||||
- .policy
|
- .policy
|
||||||
- .pull_upstream_or_rebuild
|
- .fdo.container-build@fedora
|
||||||
stage: prep
|
stage: prep
|
||||||
image: $BUILDAH_IMAGE
|
|
||||||
script:
|
script:
|
||||||
|
# log in to the registry
|
||||||
|
- podman login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
||||||
|
|
||||||
|
# get the full container image name
|
||||||
|
- export IMAGE=freebsd/$FREEBSD_VERSION:$FREEBSD_TAG
|
||||||
|
|
||||||
|
# force rebuild if schedule, reuse otherwise
|
||||||
|
- if [[ $CI_PIPELINE_SOURCE == "schedule" ]] ; then touch .scheduled; fi
|
||||||
|
|
||||||
|
# pull the latest upstream image if it exists
|
||||||
|
- test -e .scheduled || skopeo copy --dest-creds $CI_REGISTRY_USER:$CI_REGISTRY_PASSWORD
|
||||||
|
docker://$CI_REGISTRY/$FDO_UPSTREAM_REPO/$IMAGE
|
||||||
|
docker://$CI_REGISTRY_IMAGE/$IMAGE && exit 0 || true ;
|
||||||
|
|
||||||
|
# check if our image is already in the current registry
|
||||||
|
- test -e .scheduled || skopeo inspect docker://$CI_REGISTRY_IMAGE/$IMAGE > /dev/null && exit 0 || true ;
|
||||||
|
|
||||||
- export BUILDAH_RUN="buildah run --isolation chroot"
|
- export BUILDAH_RUN="buildah run --isolation chroot"
|
||||||
- export BUILDAH_COMMIT="buildah commit --format docker"
|
- export BUILDAH_COMMIT="buildah commit --format docker"
|
||||||
- buildcntr=$(buildah from --quiet myfreeweb/freebsd-cross:latest)
|
- buildcntr=$(buildah from --quiet myfreeweb/freebsd-cross:latest)
|
||||||
|
|
@ -248,9 +248,6 @@ freebsd:11.2@container-prep:
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
FREEBSD_VERSION: "11.2"
|
FREEBSD_VERSION: "11.2"
|
||||||
DISTRIB_NAME: freebsd
|
|
||||||
DISTRIB_VERSION: $FREEBSD_VERSION
|
|
||||||
TAG: $FREEBSD_TAG
|
|
||||||
|
|
||||||
|
|
||||||
#################################################################
|
#################################################################
|
||||||
|
|
@ -265,11 +262,14 @@ freebsd:11.2@container-prep:
|
||||||
# the registry and will remove any that are not tagged with the provided
|
# the registry and will remove any that are not tagged with the provided
|
||||||
# $container_image:$tag
|
# $container_image:$tag
|
||||||
#
|
#
|
||||||
|
# Note that we want to use the latest buildah image, and for that
|
||||||
|
# we use one of the .fdo.container-build@distribution by replacing the
|
||||||
|
# `script`.
|
||||||
.container-clean:
|
.container-clean:
|
||||||
extends:
|
extends:
|
||||||
|
- .fdo.container-build@fedora
|
||||||
- .policy
|
- .policy
|
||||||
stage: container_clean
|
stage: container_clean
|
||||||
image: $BUILDAH_IMAGE
|
|
||||||
script:
|
script:
|
||||||
# get the full container image name (CURRENT_CONTAINER_IMAGE still has indirections)
|
# get the full container image name (CURRENT_CONTAINER_IMAGE still has indirections)
|
||||||
- CONTAINER_IMAGE=$(eval echo "$CURRENT_CONTAINER_IMAGE")
|
- CONTAINER_IMAGE=$(eval echo "$CURRENT_CONTAINER_IMAGE")
|
||||||
|
|
@ -342,7 +342,9 @@ freebsd:11.2@container-prep:
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
{{distro.name.upper()}}_VERSION: '{{distro.version}}'
|
{{distro.name.upper()}}_VERSION: '{{distro.version}}'
|
||||||
CURRENT_CONTAINER_IMAGE: ${{distro.name.upper()}}_CONTAINER_IMAGE
|
CURRENT_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/{{distro.name}}/$FDO_DISTRIBUTION_VERSION:$FDO_DISTRIBUTION_TAG
|
||||||
|
FDO_DISTRIBUTION_VERSION: '{{distro.version}}'
|
||||||
|
FDO_DISTRIBUTION_TAG: ${{distro.name.upper()}}_TAG
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
|
@ -387,6 +389,7 @@ freebsd:11.2@container-clean:
|
||||||
.test-suite-vm:
|
.test-suite-vm:
|
||||||
extends:
|
extends:
|
||||||
- .policy
|
- .policy
|
||||||
|
- .fdo.distribution-image@fedora
|
||||||
stage: VM
|
stage: VM
|
||||||
tags:
|
tags:
|
||||||
- kvm
|
- kvm
|
||||||
|
|
@ -442,10 +445,11 @@ freebsd:11.2@container-clean:
|
||||||
|
|
||||||
|
|
||||||
.fedora:30@test-suite-vm:
|
.fedora:30@test-suite-vm:
|
||||||
extends: .test-suite-vm
|
extends:
|
||||||
image: $QEMU_CONTAINER_IMAGE
|
- .test-suite-vm
|
||||||
variables:
|
variables:
|
||||||
FEDORA_VERSION: 30
|
FDO_DISTRIBUTION_VERSION: 30
|
||||||
|
FDO_DISTRIBUTION_TAG: $QEMU_TAG
|
||||||
needs: ['fedora:30@qemu-prep']
|
needs: ['fedora:30@qemu-prep']
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -477,10 +481,11 @@ vm-valgrind-{{suite.name}}:
|
||||||
|
|
||||||
.fedora-build@template:
|
.fedora-build@template:
|
||||||
extends:
|
extends:
|
||||||
|
- .fdo.distribution-image@fedora
|
||||||
- .build@template
|
- .build@template
|
||||||
image: $FEDORA_CONTAINER_IMAGE
|
|
||||||
variables:
|
variables:
|
||||||
FEDORA_VERSION: 30
|
FDO_DISTRIBUTION_VERSION: '30'
|
||||||
|
FDO_DISTRIBUTION_TAG: $FEDORA_TAG
|
||||||
needs: ['fedora:30@container-prep']
|
needs: ['fedora:30@container-prep']
|
||||||
|
|
||||||
default-build-release@fedora:30:
|
default-build-release@fedora:30:
|
||||||
|
|
@ -604,9 +609,10 @@ flake8@fedora:30:
|
||||||
stage: distro
|
stage: distro
|
||||||
extends:
|
extends:
|
||||||
- .build@template
|
- .build@template
|
||||||
image: ${{distro.name.upper()}}_CONTAINER_IMAGE
|
- .fdo.distribution-image@{{distro.name}}
|
||||||
variables:
|
variables:
|
||||||
{{distro.name.upper()}}_VERSION: '{{distro.version}}'
|
FDO_DISTRIBUTION_VERSION: '{{distro.version}}'
|
||||||
|
FDO_DISTRIBUTION_TAG: ${{distro.name.upper()}}_TAG
|
||||||
{# Where we have extra_variables defined, add them to the list #}
|
{# Where we have extra_variables defined, add them to the list #}
|
||||||
{% if distro.build is defined and distro.build.extra_variables is defined %}
|
{% if distro.build is defined and distro.build.extra_variables is defined %}
|
||||||
{% for var in distro.build.extra_variables %}
|
{% for var in distro.build.extra_variables %}
|
||||||
|
|
@ -641,9 +647,10 @@ freebsd:11.2@default-build:
|
||||||
#
|
#
|
||||||
|
|
||||||
wayland-web:
|
wayland-web:
|
||||||
image: $BUILDAH_IMAGE
|
image: alpine:latest
|
||||||
stage: deploy
|
stage: deploy
|
||||||
script:
|
script:
|
||||||
|
- apk add curl
|
||||||
# Requirements:
|
# Requirements:
|
||||||
# - variable WAYLAND_WEB_TOKEN defined as type File in libinput's CI/CD settings
|
# - variable WAYLAND_WEB_TOKEN defined as type File in libinput's CI/CD settings
|
||||||
# - content of that file is the token value, as generated by the Pipeline Triggers
|
# - content of that file is the token value, as generated by the Pipeline Triggers
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue