Skip to content

Commit fb53f2d

Browse files
committed
c++: build project with sanitizers
1 parent a247983 commit fb53f2d

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

cxx/cxx-sanitizers-pipeline.groovy

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def check_dependencies(tool) {
2828
} else {
2929
check_clang()
3030
}
31+
sh("ccache -M 10G")
3132
}
3233

3334
pipeline {
@@ -66,13 +67,21 @@ pipeline {
6667
}
6768
}
6869
stage('check') {
70+
environment {
71+
CB_CLANG = 'clang-16'
72+
CB_CLANGXX = 'clang++-16'
73+
CB_NUMBER_OF_JOBS = '4'
74+
}
6975
matrix {
7076
axes {
7177
axis {
7278
name 'TOOL'
73-
values 'drd', 'memcheck', 'tsan', 'ubsan', 'asan', 'lsan', 'msan'
79+
values 'drd', 'memcheck', 'tsan', 'ubsan', 'asan', 'lsan'
7480
}
7581
}
82+
environment {
83+
CB_SANITIZER = "${TOOL}"
84+
}
7685
agent { label 'ubuntu20' }
7786
stages {
7887
stage("src") {
@@ -93,8 +102,8 @@ pipeline {
93102
steps {
94103
timestamps {
95104
dir("build-${TOOL}-${BUILD_NUMBER}/couchbase-cxx-client") {
96-
sh("echo build ${TOOL}")
97-
sh("ls")
105+
sh("ccache -s")
106+
sh("./bin/build-tests")
98107
}
99108
}
100109
}

0 commit comments

Comments
 (0)