Skip to content

Commit 3c10d3a

Browse files
committed
Ensure that coverage is made even when a test fails
If e3-testsuite-report fails, coverage commands after it will not be executed. This commit replaces the exit by a FAIL variable, which is then checked at the end. Change-Id: I935d6ac032b0d3d5c68de21e0ae0dd08ef5e691b
1 parent f9fef59 commit 3c10d3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ test:
5252
--failure-exit-code 1
5353
--xunit-output $CI_PROJECT_DIR/test.xml
5454
--xunit-name gnatcoll-core
55-
$ANOD_DEFAULT_SANDBOX_DIR/$HOST/gnatcoll-core-current-test/results/new/ || exit 1
55+
$ANOD_DEFAULT_SANDBOX_DIR/$HOST/gnatcoll-core-current-test/results/new/ || FAILED=true
5656

5757
# We previously prevented the pipeline from halting if a test failed, to make
5858
# sure all tests were run. If a test failed now we exit with a non-zero code
@@ -85,7 +85,7 @@ build_and_test_coverage:
8585
--failure-exit-code 1
8686
--xunit-output $CI_PROJECT_DIR/test-coverage.xml
8787
--xunit-name gnatcoll-core
88-
$ANOD_DEFAULT_SANDBOX_DIR/$HOST/gnatcoll-core-current-test-cov/results/new/ || exit 1
88+
$ANOD_DEFAULT_SANDBOX_DIR/$HOST/gnatcoll-core-current-test-cov/results/new/ || FAILED=true
8989

9090
# Create test count badge
9191
- cd $CI_PROJECT_DIR

0 commit comments

Comments
 (0)