ci: add unit testing to drone-ci
Some checks failed
continuous-integration/drone/pr Build is failing

This commit is contained in:
light7734 2025-07-16 11:03:42 +03:30
parent 5748e0a496
commit 5bcb4cfdd3

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