From ae53f20dc0e9934a1b364b847f9f631d38f0f635 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sun, 2 Feb 2020 15:12:53 +0100 Subject: [PATCH] Add valgrind to Windows, split up valgrind runs into separate steps. --- .drone.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index ff1367e..14bedc9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -35,6 +35,9 @@ steps: - cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ . -B build-release - cmake --build build-release --target all -- -j 4 - build-release/bin/pkmnLibTests -s --durations yes --use-colour yes + - name: valgrind-release-linux + image: deukhoofd/linux64builder + commands: - valgrind --tool=memcheck --gen-suppressions=all --leak-check=full --leak-resolution=med --track-origins=yes --vgdb=no --error-exitcode=1 build-release/bin/pkmnLibTests - name: test-release-windows image: deukhoofd/windowsbuilder @@ -62,4 +65,8 @@ steps: - cp /usr/x86_64-w64-mingw32/lib/libwinpthread-1.dll /drone/src/build-release-windows/bin/ - cp /drone/src/build-release-windows/lib/libpkmnLib.so /drone/src/build-release-windows/bin/ - export WINEARCH=win64 - - wine build-release-windows/bin/pkmnLibTests.exe -s \ No newline at end of file + - wine build-release-windows/bin/pkmnLibTests.exe -s + - name: valgrind-release-windows + image: deukhoofd/windowsbuilder + commands: + - valgrind --trace-children=yes --vex-iropt-register-updates=allregs-at-mem-access wine build-release-windows/bin/pkmnLibTests.exe -s \ No newline at end of file