CI: Run clang-tidy

This commit is contained in:
Dennis Klein 2021-03-23 11:23:20 +01:00 committed by Dennis Klein
parent bffe74c5cf
commit 21d6cf9830
2 changed files with 6 additions and 4 deletions

View File

@ -44,8 +44,10 @@ list(APPEND options
"-DDISABLE_COLOR=ON" "-DDISABLE_COLOR=ON"
"-DBUILD_SDK_COMMANDS=ON" "-DBUILD_SDK_COMMANDS=ON"
"-DBUILD_SDK=ON" "-DBUILD_SDK=ON"
"-DBUILD_DDS_PLUGIN=ON" "-DBUILD_DDS_PLUGIN=ON")
) if(RUN_STATIC_ANALYSIS)
list(APPEND options "-DRUN_STATIC_ANALYSIS=ON")
endif()
list(JOIN options ";" optionsstr) list(JOIN options ";" optionsstr)
ctest_configure(OPTIONS "${optionsstr}") ctest_configure(OPTIONS "${optionsstr}")

4
Jenkinsfile vendored
View File

@ -29,7 +29,7 @@ def jobMatrix(String prefix, String type, List specs) {
sh "cat ${jobscript}" sh "cat ${jobscript}"
sh "bash ${jobscript}" sh "bash ${jobscript}"
} else { } else {
def containercmd = "singularity exec -B/shared ${env.SINGULARITY_CONTAINER_ROOT}/fairmq/${os}.${ver}.sif bash -l -c \\\"${ctestcmd}\\\"" def containercmd = "singularity exec -B/shared ${env.SINGULARITY_CONTAINER_ROOT}/fairmq/${os}.${ver}.sif bash -l -c \\\"${ctestcmd} -DRUN_STATIC_ANALYSIS=ON\\\""
sh """\ sh """\
echo \"echo \\\"*** Job started at .......: \\\$(date -R)\\\"\" >> ${jobscript} echo \"echo \\\"*** Job started at .......: \\\$(date -R)\\\"\" >> ${jobscript}
echo \"echo \\\"*** Job ID ...............: \\\${SLURM_JOB_ID}\\\"\" >> ${jobscript} echo \"echo \\\"*** Job ID ...............: \\\${SLURM_JOB_ID}\\\"\" >> ${jobscript}
@ -58,7 +58,7 @@ def jobMatrix(String prefix, String type, List specs) {
pipeline{ pipeline{
agent none agent none
stages { stages {
stage("Run CI Matrix") { stage("CI") {
steps{ steps{
script { script {
def builds = jobMatrix('alfa-ci', 'build', [ def builds = jobMatrix('alfa-ci', 'build', [