Skip to content

Commit

Permalink
c++: build project with sanitizers
Browse files Browse the repository at this point in the history
  • Loading branch information
avsej committed May 9, 2023
1 parent a247983 commit fb53f2d
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions cxx/cxx-sanitizers-pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def check_dependencies(tool) {
} else {
check_clang()
}
sh("ccache -M 10G")
}

pipeline {
Expand Down Expand Up @@ -66,13 +67,21 @@ pipeline {
}
}
stage('check') {
environment {
CB_CLANG = 'clang-16'
CB_CLANGXX = 'clang++-16'
CB_NUMBER_OF_JOBS = '4'
}
matrix {
axes {
axis {
name 'TOOL'
values 'drd', 'memcheck', 'tsan', 'ubsan', 'asan', 'lsan', 'msan'
values 'drd', 'memcheck', 'tsan', 'ubsan', 'asan', 'lsan'
}
}
environment {
CB_SANITIZER = "${TOOL}"
}
agent { label 'ubuntu20' }
stages {
stage("src") {
Expand All @@ -93,8 +102,8 @@ pipeline {
steps {
timestamps {
dir("build-${TOOL}-${BUILD_NUMBER}/couchbase-cxx-client") {
sh("echo build ${TOOL}")
sh("ls")
sh("ccache -s")
sh("./bin/build-tests")
}
}
}
Expand Down

0 comments on commit fb53f2d

Please sign in to comment.