Commit 3bb6b149 authored by Claudio André's avatar Claudio André

CI: create a compiler warnings report

parent 9a647765
......@@ -75,6 +75,7 @@ fedora:
CC: gcc
DEV: devel
TEST: "check"
WARNINGS: "count"
#############################################
# Regular tests
......
......@@ -101,6 +101,14 @@ function do_Compare_With_Upstream_Master(){
fi
}
function do_Check_Warnings(){
echo '-----------------------------------------'
cat compilation.log | grep "warning:" | awk '{total+=1}END{print "Total number of warnings: "total}'
echo '-----------------------------------------'
}
# ----------- Run the Tests -----------
if [[ -n "${BUILD_OPTS}" ]]; then
extra_opts="($BUILD_OPTS)"
......@@ -164,7 +172,7 @@ if [[ $1 == "GJS" ]]; then
echo "Autogen options: $ci_autogenargs"
eval ./autogen.sh "$ci_autogenargs"
make -sj
make -sj 2>&1 | tee compilation.log
if [[ $TEST == "distcheck" ]]; then
make -s distcheck
......@@ -174,6 +182,12 @@ if [[ $1 == "GJS" ]]; then
make -sj install
fi
if [[ $WARNINGS == "count" ]]; then
echo
echo '-- Warnings Report --'
do_Check_Warnings
fi
elif [[ $1 == "GJS_EXTRA" ]]; then
# Extra testing. It doesn't (re)build, just run the 'Installed Tests'
echo
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment