ci: add unit tests check #4

Merged
light7734 merged 8 commits from ci/unit-tests into main 2025-07-16 09:55:16 +00:00
Showing only changes of commit 5bcb4cfdd3 - Show all commits

View file

@ -32,8 +32,43 @@ steps:
fi
exit ${has_fomatting_issues}
---
---
kind: pipeline
type: docker
name: unit tests
clone:
recursive: true
submodule_update_remote: true
trigger:
branch:
- main
steps:
- name: unit tests
image: unit_tests:latest
pull: if-not-exists
commands:
- |
git submodule update --init --recursive
conan build . \
-c tools.system.package_manager:mode=install \
-s build_type=Release \
-o enable_static_analysis=False \
-o enable_tests=True \
--build=missing
find ./build \
-type f \
-name '*_tests' \
-executable \
-exec sh -c \
'{}' \
\;
---
kind: pipeline
type: docker
name: static analysis
@ -51,5 +86,12 @@ steps:
pull: if-not-exists
privileged: true
commands:
- git submodule update --init --recursive
- conan build . -s build_type=Release -o enable_static_analysis=True --build=missing
- |
git submodule update --init --recursive
conan build . \
-c tools.system.package_manager:mode=install \
-s build_type=Release \
-o enable_static_analysis=True \
-o enable_tests=True \
--build=missing