mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2025-12-20 04:20:04 +01:00
ci: Compile all backends in the CI
The BSD backends are still compiled in linux, and platform specific code is mostly disabled using a special define. However, this way we can at least compile tests code refactorings.
This commit is contained in:
parent
eeaaddbcdd
commit
380e974d75
1 changed files with 26 additions and 0 deletions
|
|
@ -64,6 +64,32 @@ build:
|
|||
paths: [$(pwd)]
|
||||
expire_in: 3h30min
|
||||
|
||||
|
||||
# Compile test the other backends (they don't have extra dependencies currently)
|
||||
.build_backend_template: &build_backend
|
||||
stage: build
|
||||
script:
|
||||
- CFLAGS=-DUPOWER_CI_DISABLE_PLATFORM_CODE=1 meson _build -Dos_backend=$backend
|
||||
- ninja -C _build
|
||||
except:
|
||||
variables:
|
||||
- $CI_PIPELINE_SOURCE == "schedule"
|
||||
|
||||
build_dummy:
|
||||
variables:
|
||||
backend: dummy
|
||||
<<: *build_backend
|
||||
|
||||
build_freebsd:
|
||||
variables:
|
||||
backend: freebsd
|
||||
<<: *build_backend
|
||||
|
||||
build_openbsd:
|
||||
variables:
|
||||
backend: openbsd
|
||||
<<: *build_backend
|
||||
|
||||
test:
|
||||
stage: test
|
||||
dependencies:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue