Commit ead64625 authored by Philip Chimento's avatar Philip Chimento 🚮

Merge branch 'warn' into 'master'

Warn about compilation warnings

See merge request !125
parents 50b6880f 3bb6b149
Pipeline #9037 passed with stages
in 39 minutes and 40 seconds
......@@ -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