CI: Add alice-centos-7 environment

This commit is contained in:
Dennis Klein 2021-04-08 14:17:38 +02:00 committed by Dennis Klein
parent ea9aede652
commit a2016a9361

21
Jenkinsfile vendored
View File

@ -29,7 +29,11 @@ def jobMatrix(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} -DRUN_STATIC_ANALYSIS=ON\\\"" def static_analysis = "OFF"
if (selector =~ /^fedora/) {
static_analysis = "ON"
}
def containercmd = "singularity exec -B/shared ${env.SINGULARITY_CONTAINER_ROOT}/fairmq/${os}.${ver}.sif bash -l -c \\\"${ctestcmd} -DRUN_STATIC_ANALYSIS=${static_analysis}\\\""
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}
@ -42,10 +46,12 @@ def jobMatrix(String type, List specs) {
sh "test/ci/slurm-submit.sh \"FairMQ \${JOB_BASE_NAME} ${label}\" ${jobscript}" sh "test/ci/slurm-submit.sh \"FairMQ \${JOB_BASE_NAME} ${label}\" ${jobscript}"
withChecks('Static Analysis') { withChecks('Static Analysis') {
recordIssues(enabledForFailure: true, if (static_analysis == "ON") {
tools: [gcc(pattern: 'build/Testing/Temporary/*.log')], recordIssues(enabledForFailure: true,
filters: [excludeFile('extern/*'), excludeFile('usr/*')], tools: [gcc(pattern: 'build/Testing/Temporary/*.log')],
skipBlames: true) filters: [excludeFile('extern/*'), excludeFile('usr/*')],
skipBlames: true)
}
} }
} }
@ -73,8 +79,9 @@ pipeline{
steps{ steps{
script { script {
def builds = jobMatrix('build', [ def builds = jobMatrix('build', [
[os: 'fedora', ver: '32', arch: 'x86_64', compiler: 'gcc-10'], [os: 'alice-centos', ver: '7', arch: 'x86_64', compiler: 'gcc-7'],
[os: 'macos', ver: '11', arch: 'x86_64', compiler: 'apple-clang-12'], [os: 'fedora', ver: '32', arch: 'x86_64', compiler: 'gcc-10'],
[os: 'macos', ver: '11', arch: 'x86_64', compiler: 'apple-clang-12'],
]) ])
parallel(builds) parallel(builds)