Skip to content

Commit 7266731

Browse files
committed
GCC valgrind job in CI
Plus some updates to valgrind CI settings.
1 parent f356f13 commit 7266731

2 files changed

Lines changed: 5 additions & 13 deletions

File tree

.drone.star

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ def main(ctx):
114114
{ 'match': {'compiler': 'clang =latest', 'os': 'linux'},
115115
'special': 'valgrind',
116116
},
117+
{ 'match': {'compiler': 'gcc =latest', 'os': 'linux'},
118+
'special': 'valgrind',
119+
},
117120
],
118121
) + [
119122
linux_cxx("docs", "g++", buildtype="docs", buildscript="drone", image="cppalliance/boost_superproject_build:24.04-v3", environment={'COMMENT': 'docs'}, globalenv=globalenv),
@@ -383,14 +386,14 @@ def apply_special(job, special):
383386

384387
elif special == 'valgrind':
385388
job['name'] = 'Valgrind ' + job['name']
386-
job['type'] = 'valgrind'
387389
set_or_append(
388390
job['environment'], 'B2_TESTFLAGS', 'testing.launcher=valgrind',
389391
)
390392
job['environment']['VALGRIND_OPTS'] = '--error-exitcode=1'
393+
job.setdefault('packages', []).append('valgrind')
391394

392395
if job['compiler'] == 'clang' and job['os'] == 'linux':
393-
job.setdefault('packages', []).append('libc6-dbg')
396+
job['packages'].append('libc6-dbg')
394397

395398
if special in ('asan', 'tsan', 'ubsan'):
396399
job['environment']['B2_' + special.upper()] = '1'

.drone/drone.sh

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -137,17 +137,6 @@ echo '==================================> SCRIPT'
137137
cd $BOOST_ROOT/libs/$SELF
138138
ci/travis/codecov.sh
139139

140-
elif [ "$DRONE_JOB_BUILDTYPE" == "valgrind" ]; then
141-
142-
echo '==================================> INSTALL'
143-
144-
common_install
145-
146-
echo '==================================> SCRIPT'
147-
148-
cd $BOOST_ROOT/libs/$SELF
149-
ci/travis/valgrind.sh
150-
151140
elif [ "$DRONE_JOB_BUILDTYPE" == "coverity" ]; then
152141

153142
echo '==================================> INSTALL'

0 commit comments

Comments
 (0)