[CI] Add valgrind step to drone

This commit is contained in:
Joel Linn 2022-01-22 20:52:50 +01:00 committed by Rick Gibbed
parent c481b0483c
commit 16be84cdb0
1 changed files with 26 additions and 5 deletions

View File

@ -185,6 +185,17 @@ def pipeline_linux_desktop(name, image, arch, cc):
# #
# Building # Building
# #
{
'name': 'build-premake-debug-tests',
'image': image,
'volumes': [volume_build('premake')],
'commands': [
command_cc(cc),
'./xenia-build build --no_premake -j$(nproc) --config=Debug --target=xenia-base-tests',
],
'depends_on': ['toolchain-premake'],
},
{ {
'name': 'build-premake-debug-all', 'name': 'build-premake-debug-all',
'image': image, 'image': image,
@ -193,7 +204,7 @@ def pipeline_linux_desktop(name, image, arch, cc):
command_cc(cc), command_cc(cc),
'./xenia-build build --no_premake -j$(nproc) --config=Debug', './xenia-build build --no_premake -j$(nproc) --config=Debug',
], ],
'depends_on': ['toolchain-premake'], 'depends_on': ['build-premake-debug-tests'],
}, },
{ {
@ -206,7 +217,6 @@ def pipeline_linux_desktop(name, image, arch, cc):
], ],
'depends_on': ['toolchain-premake'], 'depends_on': ['toolchain-premake'],
}, },
{ {
'name': 'build-premake-release-all', 'name': 'build-premake-release-all',
'image': image, 'image': image,
@ -241,7 +251,6 @@ def pipeline_linux_desktop(name, image, arch, cc):
], ],
'depends_on': ['toolchain-cmake'], 'depends_on': ['toolchain-cmake'],
}, },
{ {
'name': 'build-cmake-release-all', 'name': 'build-cmake-release-all',
'image': image, 'image': image,
@ -258,8 +267,19 @@ def pipeline_linux_desktop(name, image, arch, cc):
# #
# Tests # Tests
# #
{ {
'name': 'test-premake', 'name': 'test-premake-debug-valgrind',
'image': image,
'volumes': [volume_build('premake')],
'commands': [
'valgrind --error-exitcode=99 ./build/bin/Linux/Debug/xenia-base-tests',
],
'depends_on': ['build-premake-debug-tests'],
},
{
'name': 'test-premake-release',
'image': image, 'image': image,
'volumes': [volume_build('premake')], 'volumes': [volume_build('premake')],
'commands': [ 'commands': [
@ -269,7 +289,7 @@ def pipeline_linux_desktop(name, image, arch, cc):
}, },
{ {
'name': 'test-cmake', 'name': 'test-cmake-release',
'image': image, 'image': image,
'volumes': [volume_build('cmake')], 'volumes': [volume_build('cmake')],
'commands': [ 'commands': [
@ -282,6 +302,7 @@ def pipeline_linux_desktop(name, image, arch, cc):
# #
# Stat # Stat
# #
{ {
'name': 'stat', 'name': 'stat',
'image': image, 'image': image,