mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2026-02-04 23:30:25 +01:00
These templates get rid of the various distribution-specific naming and
instead default to the namespaced FDO_DISTRIBUTION_<foo> for whatever value we
need. So FEDORA_RPMS, DEBIAN_DEBS etc. becomes FDO_DISTRIBUTION_PACKAGES for
example.
By necessity this is one large commit. gitlab does not allow nested variable
expansion, so the previous approach of global variables didn't work.
Specifically, we'd end up with a template in this form:
variables:
FEDORA_TAG: 12345
.base_template:
variables:
DISTRO_IMAGE: $DISTRO_TAG
.fedora:
variables:
$DISTRO_TAG: $FEDORA_TAG
But the actual DISTRO_IMAGE variable would be the literal string $FEDORA_TAG,
not the value of that variable. So all of it needed to be reworked.
Specifically:
- the packages to install moved to the config yaml file
- the distribution tag is now in the config yaml file
- all distributions now share the same tag (because lazyness)
- there are .fedora:30, .debian:stable, etc. templates now with the variables
defined as needed, jobs will extends those templates as they need those
distributions
- qemu-prep jobs are now generated too (based on the config yaml file)
Overall, it ends up cleaner despite the mess in this patch.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
136 lines
2.3 KiB
YAML
136 lines
2.3 KiB
YAML
# This file contains the configuration for the gitlab ci.
|
|
# See the .gitlab-ci/generate-gitlab-ci.py file for more info
|
|
#
|
|
|
|
# We're happy to rebuild all containers when one changes.
|
|
.default_tag: &default_tag '2020-03-06.0'
|
|
|
|
distributions:
|
|
- name: fedora
|
|
tag: *default_tag
|
|
versions:
|
|
- '30'
|
|
- '31'
|
|
packages:
|
|
- git
|
|
- gcc
|
|
- gcc-c++
|
|
- meson
|
|
- automake
|
|
- autoconf
|
|
- libtool
|
|
- make
|
|
- pkgconfig
|
|
- python3
|
|
- check-devel
|
|
- valgrind
|
|
- binutils
|
|
- doxygen
|
|
- xz
|
|
- clang-analyzer
|
|
want_qemu: true
|
|
- name: ubuntu
|
|
tag: *default_tag
|
|
versions:
|
|
- '19.10'
|
|
- '19.04'
|
|
packages:
|
|
- git
|
|
- gcc
|
|
- g++
|
|
- meson
|
|
- automake
|
|
- autoconf
|
|
- libtool
|
|
- make
|
|
- pkg-config
|
|
- python3
|
|
- check
|
|
- valgrind
|
|
- binutils
|
|
- doxygen
|
|
- xz-utils
|
|
- name: debian
|
|
tag: *default_tag
|
|
versions:
|
|
- 'stable'
|
|
- 'sid'
|
|
packages:
|
|
- git
|
|
- gcc
|
|
- g++
|
|
- meson
|
|
- automake
|
|
- autoconf
|
|
- libtool
|
|
- make
|
|
- pkg-config
|
|
- python3
|
|
- check
|
|
- valgrind
|
|
- binutils
|
|
- doxygen
|
|
- xz-utils
|
|
- name: centos
|
|
tag: *default_tag
|
|
versions:
|
|
- '7'
|
|
- '8'
|
|
packages:
|
|
- git
|
|
- gcc
|
|
- gcc-c++
|
|
- automake
|
|
- autoconf
|
|
- libtool
|
|
- make
|
|
- pkgconfig
|
|
- python3
|
|
- check-devel
|
|
- valgrind
|
|
- binutils
|
|
- xz
|
|
build:
|
|
meson: False
|
|
extra_variables:
|
|
# note: the variable value includes the comment because we want that in the gitlab-ci file
|
|
MAKE_ARGS: "'' # disable distcheck, requires doxygen"
|
|
- name: arch
|
|
tag: *default_tag
|
|
versions:
|
|
- 'rolling'
|
|
packages:
|
|
- git
|
|
- gcc
|
|
- meson
|
|
- automake
|
|
- autoconf
|
|
- libtool
|
|
- make
|
|
- pkgconfig
|
|
- python3
|
|
- check
|
|
- valgrind
|
|
- binutils
|
|
- doxygen
|
|
- name: alpine
|
|
tag: *default_tag
|
|
versions:
|
|
- 'latest'
|
|
packages:
|
|
- git
|
|
- gcc
|
|
- g++
|
|
- meson
|
|
- automake
|
|
- autoconf
|
|
- libtool
|
|
- make
|
|
- pkgconfig
|
|
- python3
|
|
- check-dev
|
|
- valgrind
|
|
- binutils
|
|
- doxygen
|
|
- xz
|
|
- linux-headers
|