From 166ba2f4e0b02e8d10fc663ad376268f0042a41d Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Tue, 5 Jan 2021 23:34:28 +0000 Subject: [PATCH] Fix CI report stage to handle no warnings in the code Horray!!! We have no warnings in the code and it broke the CI. --- .gitlab/Fedora-Linux-CI.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab/Fedora-Linux-CI.yml b/.gitlab/Fedora-Linux-CI.yml index 181e6dc198..6302e234a9 100644 --- a/.gitlab/Fedora-Linux-CI.yml +++ b/.gitlab/Fedora-Linux-CI.yml @@ -74,7 +74,7 @@ report_metrics: - job: build_linux artifacts: true script: - - cat build/linux/compilation_log.txt | grep "warning:" | awk '{total+=1}END{print "number_of_warnings "total}' > metrics.txt + - cat warnings.txt | { grep "warning:" || test $? = 1; } | awk 'END{print "number_of_warnings "NR}' > metrics.txt - cat metrics.txt artifacts: reports: