2025-07-11 13:02:30 +03:30
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: clang format
|
2025-07-14 08:45:09 +00:00
|
|
|
clone:
|
|
|
|
recursive: true
|
|
|
|
submodule_update_remote: true
|
2025-07-11 13:02:30 +03:30
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- main
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: clang format
|
|
|
|
image: clang_format:latest
|
2025-07-11 13:04:38 +03:30
|
|
|
pull: if-not-exists
|
2025-07-11 13:02:30 +03:30
|
|
|
commands:
|
|
|
|
- |
|
|
|
|
set -e
|
|
|
|
clang-format --version
|
2025-07-15 16:00:35 +03:30
|
|
|
has_fomatting_issues=0
|
|
|
|
|
2025-07-15 16:08:17 +03:30
|
|
|
for file in $(find ./modules -name '*.?pp'); do
|
2025-07-11 13:02:30 +03:30
|
|
|
echo "Checking format for $file"
|
|
|
|
if ! clang-format --dry-run --Werror "$file"; then
|
|
|
|
echo "❌ Formatting issue detected in $file"
|
2025-07-15 16:00:35 +03:30
|
|
|
has_fomatting_issues=1
|
2025-07-11 13:02:30 +03:30
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2025-07-15 16:03:00 +03:30
|
|
|
if [ "$has_fomatting_issues" -eq 0 ]; then
|
2025-07-15 16:00:35 +03:30
|
|
|
echo "✅ All files are properly formatted! Well done! ^~^"
|
|
|
|
fi
|
2025-07-14 08:45:09 +00:00
|
|
|
|
2025-07-15 16:00:35 +03:30
|
|
|
exit ${has_fomatting_issues}
|
2025-07-16 11:03:42 +03:30
|
|
|
|
2025-07-14 08:45:09 +00:00
|
|
|
---
|
2025-07-16 11:03:42 +03:30
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: unit tests
|
|
|
|
clone:
|
|
|
|
recursive: true
|
|
|
|
submodule_update_remote: true
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- main
|
2025-07-14 08:45:09 +00:00
|
|
|
|
2025-07-16 11:03:42 +03:30
|
|
|
steps:
|
|
|
|
- name: unit tests
|
|
|
|
image: unit_tests:latest
|
|
|
|
pull: if-not-exists
|
|
|
|
commands:
|
|
|
|
- |
|
2025-07-16 12:50:37 +03:30
|
|
|
set -e
|
2025-07-16 11:03:42 +03:30
|
|
|
|
2025-07-16 12:50:37 +03:30
|
|
|
git submodule update --init --recursive
|
2025-07-16 11:03:42 +03:30
|
|
|
conan build . \
|
|
|
|
-c tools.system.package_manager:mode=install \
|
|
|
|
-s build_type=Release \
|
|
|
|
-o enable_static_analysis=False \
|
|
|
|
-o enable_tests=True \
|
|
|
|
--build=missing
|
|
|
|
|
2025-07-16 12:50:37 +03:30
|
|
|
for test in $(find ./build -type f -name '*_tests' -executable); do
|
|
|
|
echo "Running $test"
|
|
|
|
"$test"
|
|
|
|
done
|
2025-07-16 11:03:42 +03:30
|
|
|
|
2025-07-17 11:05:03 +03:30
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: valgrind
|
|
|
|
clone:
|
|
|
|
recursive: true
|
|
|
|
submodule_update_remote: true
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- main
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: valgrind
|
|
|
|
image: valgrind:latest
|
|
|
|
pull: if-not-exists
|
|
|
|
commands:
|
|
|
|
- |
|
|
|
|
set -e
|
|
|
|
|
|
|
|
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 | xargs -I {} bash -c 'valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose --error-exitcode=255 {}' || exit 1
|
|
|
|
|
2025-07-16 11:03:42 +03:30
|
|
|
---
|
2025-07-14 08:45:09 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: static analysis
|
|
|
|
clone:
|
|
|
|
recursive: true
|
|
|
|
submodule_update_remote: true
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- main
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: static_analysis
|
|
|
|
image: static_analysis:latest
|
|
|
|
pull: if-not-exists
|
|
|
|
privileged: true
|
|
|
|
commands:
|
2025-07-16 11:03:42 +03:30
|
|
|
- |
|
|
|
|
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
|