Skip to content

Commit 8e90cc8

Browse files
committed
Add gcovr and attempt output
1 parent f9f46bb commit 8e90cc8

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

Dockerfile.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ RUN dnf install -y cmake \
1111
environment-modules \
1212
openmpi-devel \
1313
mpich-devel \
14-
lcov
14+
lcov gcovr

Jenkinsfile

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,28 @@ pipeline {
1818
fi
1919
cd build
2020
cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_COVERAGE=1 ..
21-
make all
21+
make all -j3
2222
ctest
2323
'''
2424
}
2525
post{
2626
success{
2727
sh '''
2828
cd build
29-
ls -R
3029
make coverage
30+
gcovr --xml > coverage.xml
31+
cobertura autoUpdateHealth: false,
32+
autoUpdateStability: false,
33+
coberturaReportFile: 'build/coverage.xml',
34+
conditionalCoverageTargets: '70, 79, 80',
35+
failUnhealthy: false,
36+
failUnstable: false,
37+
lineCoverageTargets: '80, 79, 80',
38+
maxNumberOfBuilds: 0,
39+
methodCoverageTargets: '80, 79, 80',
40+
onlyStable: false,
41+
sourceEncoding: 'ASCII',
42+
zoomCoverageChart: false
3143
'''
3244
}
3345
}
@@ -42,7 +54,7 @@ pipeline {
4254
fi
4355
cd build
4456
cmake -DCMAKE_BUILD_TYPE=Release ..
45-
make all -j4
57+
make all -j3
4658
ctest
4759
'''
4860
}

0 commit comments

Comments
 (0)