light/.drone.yml

51 lines
871 B
YAML
Raw Normal View History

2025-07-11 13:02:30 +03:30
kind: pipeline
type: docker
name: clang format
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
find ./modules -name '*.?pp' | while read -r file; do
echo "Checking format for $file"
if ! clang-format --dry-run --Werror "$file"; then
echo "❌ Formatting issue detected in $file"
exit 1
fi
done
echo "✅ All files are properly formatted"
2025-07-11 15:58:21 +03:30
---
kind: pipeline
type: docker
name: static analysis
2025-07-11 16:05:02 +03:30
clone:
recursive: true
2025-07-11 15:58:21 +03:30
trigger:
branch:
- main
steps:
- name: static_analysis
image: static_analysis:latest
pull: if-not-exists
privileged: true
commands:
- conan build . -s build_type=Release -o enable_static_analysis=True --build=missing
2025-07-11 16:06:16 +03:30
---
clone:
recursive: true