Skip to content

Commit 560d09e

Browse files
committed
Remove "flat" subdirectory, the templates support that in-line now
1 parent f1cb6b5 commit 560d09e

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

scripts/lcov-jenkins-gcc-13.sh

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,6 @@ if [ ! "$skipgcovroption" = "yes" ]; then
173173
rm -r gcovr
174174
fi
175175
mkdir gcovr
176-
if [ -d "gcovr-flat" ]; then
177-
rm -r gcovr-flat
178-
fi
179-
mkdir gcovr-flat
180176
cd ../boost-root
181177
if [ ! -d ci-automation ]; then
182178
git clone -b master https://github.com/cppalliance/ci-automation
@@ -187,7 +183,6 @@ if [ ! "$skipgcovroption" = "yes" ]; then
187183
fi
188184

189185
outputlocation="$BOOST_CI_SRC_FOLDER/gcovr"
190-
outputlocation_flat="$BOOST_CI_SRC_FOLDER/gcovr-flat"
191186

192187
# First pass, output json
193188
gcovr "${GCOVR_EXTRA_OPTIONS[@]}" --merge-mode-functions separate --sort uncovered-percent --html-title "$REPONAME" --merge-lines --exclude-unreachable-branches --exclude-throw-branches --exclude '.*/test/.*' --exclude '.*/extra/.*' --exclude '.*/example/.*' --exclude '.*/examples/.*' --filter "$GCOVRFILTER" --html --output "${outputlocation}/index.html" --json-summary-pretty --json-summary "${outputlocation}/summary.json" --json "${outputlocation}/coverage-raw.json"
@@ -205,21 +200,11 @@ if [ ! "$skipgcovroption" = "yes" ]; then
205200
# Second pass, generate html
206201
gcovr "${GCOVR_EXTRA_OPTIONS[@]}" -a "$outputlocation/coverage-fixed.json" --merge-mode-functions separate --sort uncovered-percent --html-nested --html-template-dir=ci-automation/gcovr-templates/html --html-title "$REPONAME" --merge-lines --exclude-unreachable-branches --exclude-throw-branches --exclude '.*/test/.*' --exclude '.*/extra/.*' --exclude '.*/example/.*' --exclude '.*/examples/.*' --html --output "${outputlocation}/index.html" --json-summary-pretty --json-summary "$outputlocation/summary.json"
207202

208-
# Second pass, generate html flat
209-
# gcovr -a "$outputlocation/coverage-fixed.json" --merge-mode-functions separate --sort uncovered-percent --html-details --html-template-dir=ci-automation/gcovr-templates/html --html-title "$REPONAME" --merge-lines --exclude-unreachable-branches --exclude-throw-branches --exclude '.*/test/.*' --exclude '.*/extra/.*' --exclude '.*/example/.*' --exclude '.*/examples/.*' --html --output "${outputlocation_flat}/index.html" --json-summary-pretty --json-summary "${outputlocation_flat}/summary.json"
210-
211-
# again, temporarily try without templates
212-
gcovr "${GCOVR_EXTRA_OPTIONS[@]}" -a "$outputlocation/coverage-fixed.json" --merge-mode-functions separate --sort uncovered-percent --html-details --html-title "$REPONAME" --merge-lines --exclude-unreachable-branches --exclude-throw-branches --exclude '.*/test/.*' --exclude '.*/extra/.*' --exclude '.*/example/.*' --exclude '.*/examples/.*' --html --output "${outputlocation_flat}/index.html" --json-summary-pretty --json-summary "${outputlocation_flat}/summary.json"
213-
214203
ls -al "${outputlocation}"
215204

216205
# Generate tree.json for sidebar navigation
217206
python3 "ci-automation/scripts/gcovr_build_tree.py" "${outputlocation}"
218207

219-
# Generate tree.json for sidebar navigation - flat
220-
# temporarily testing
221-
# python3 "ci-automation/scripts/gcovr_build_tree.py" "${outputlocation_flat}"
222-
223208
# Generate coverage badges
224209
python3 "ci-automation/scripts/generate_badges.py" "$outputlocation" --json "$outputlocation/summary.json"
225210

0 commit comments

Comments
 (0)