From 57031ee44e4b6879ce8b438c3663c02bf5b56571 Mon Sep 17 00:00:00 2001 From: light7734 Date: Sun, 20 Jul 2025 07:28:21 +0330 Subject: [PATCH] ci: update .drone.yml --- .drone.yml | 33 ++++++++++++++++++++++++--------- 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/.drone.yml b/.drone.yml index dd25681..4f1afeb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,7 +1,7 @@ --- kind: pipeline type: exec -name: build msvc amd64 +name: amd64_msvc — tests trigger: branch: - main @@ -10,22 +10,37 @@ platform: arch: amd64 steps: -- name: greeting +- name: tests shell: powershell commands: - - conan profile detect - - conan build . -s compiler.cppstd=20 -s build_type=Release + - | + conan profile detect + + conan build . -s compiler.cppstd=20 -s build_type=Release + + $tests = Get-ChildItem -Path "./build" -Recurse -File | Where-Object { + $_.Name -like "*_tests.exe" + } + + foreach ($test in $tests) { + Write-Host "Running $($test.FullName)" + & $test.FullName + if ($LASTEXITCODE -ne 0) { + Write-Error "Test $($test.Name) failed! T_T" + exit $LASTEXITCODE + } + } --- kind: pipeline type: docker -name: unit tests +name: amd64_gcc — tests trigger: branch: - main steps: -- name: unit tests +- name: tests image: unit_tests:latest pull: if-not-exists commands: @@ -48,7 +63,7 @@ steps: --- kind: pipeline type: docker -name: valgrind +name: amd64_gcc — valgrind trigger: branch: - main @@ -74,7 +89,7 @@ steps: --- kind: pipeline type: docker -name: leak sanitizer +name: amd64_clang — sanitizer — leak trigger: branch: - main @@ -133,7 +148,7 @@ steps: --- kind: pipeline type: docker -name: clang format +name: style trigger: branch: - main