Fix CI report stage to handle no warnings in the code

Horray!!! We have no warnings in the code and it broke the CI.
This commit is contained in:
Ian McInerney 2021-01-05 23:34:28 +00:00
parent 1ff307d10f
commit 166ba2f4e0
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ report_metrics:
- job: build_linux - job: build_linux
artifacts: true artifacts: true
script: 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 - cat metrics.txt
artifacts: artifacts:
reports: reports: