From 380e974d75451cbb8153629c3ff45d66fabb9fba Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Fri, 1 Apr 2022 18:31:46 +0200 Subject: [PATCH] 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. --- .gitlab-ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2878307..fe0f322 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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: