]> git.ipfire.org Git - thirdparty/git.git/commitdiff
ci(coverity): output the build log upon error
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 11 Jun 2025 15:54:38 +0000 (15:54 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 11 Jun 2025 17:01:14 +0000 (10:01 -0700)
It is quite helpful to know what Coverity said, exactly, in case it
fails to analyze the code.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
.github/workflows/coverity.yml

index d8a0497d596d4a41feb8473c89d281c9cd2522f9..01a0437b2f26342636107c04ad2ad851add97d30 100644 (file)
@@ -149,7 +149,11 @@ jobs:
         run: |
           export PATH="$PATH:$RUNNER_TEMP/cov-analysis/bin" &&
           cov-configure --gcc &&
-          cov-build --dir cov-int make
+          if ! cov-build --dir cov-int make
+          then
+            cat cov-int/build-log.txt
+            exit 1
+          fi
       - name: package the build
         run: tar -czvf cov-int.tgz cov-int
       - name: submit the build to Coverity Scan