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:
Benjamin Berg 2022-04-01 18:31:46 +02:00
parent eeaaddbcdd
commit 380e974d75

View file

@ -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: