summaryrefslogtreecommitdiff
path: root/tools/ci/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ci/scripts')
-rwxr-xr-xtools/ci/scripts/deheader.sh39
-rwxr-xr-xtools/ci/scripts/deheaderS.sh40
-rwxr-xr-xtools/ci/scripts/init.sh12
3 files changed, 49 insertions, 42 deletions
diff --git a/tools/ci/scripts/deheader.sh b/tools/ci/scripts/deheader.sh
index 03ea0ee18..9914da900 100755
--- a/tools/ci/scripts/deheader.sh
+++ b/tools/ci/scripts/deheader.sh
@@ -22,21 +22,24 @@ fi
echo $1 >>${LOGFILE}
echo $1
-${dir}/deheader -q -i "\"debug.h\"" \
--i "\"utils/checkutils.h\"" \
--i "\"utils/sdlcheckutils.h\"" \
--i "\"sdlshared.h\"" \
--i "\"localconsts.h\"" \
--i "\"utils/fuzzer.h\"" \
--i "\"$name\"" \
--c "$CXX" \
--d "$FLAGS" \
--s "-std=gnu++1z" \
--m "-c -Werror -Wall -Wextra -Wundef -Wmissing-declarations -DUCHAR_TYPE=uint16_t -DLOCALEDIR=\\\"\\\" -I/usr/include $INCLUDES -I${dir}/src" $1 2>&1 | \
-grep -v "deheader: ./src/net/sdltcpnet.cpp has more than one inclusion of <netinet/tcp.h>" | \
-grep -v "deheader: remove <netinet/tcp.h> from ./src/net/sdltcpnet.cpp" | \
-grep -v "deheader: remove <climits> from ./src/resources/db/unitsdb.cpp" | \
-grep -v "portability requires" | \
-grep -v "SDL2_rotozoom.cpp" | \
-grep -v "doctest.h" | \
-tee -a ${LOGFILE}
+"${dir}/deheader" -q \
+ -i "\"debug.h\"" \
+ -i "\"utils/checkutils.h\"" \
+ -i "\"utils/sdlcheckutils.h\"" \
+ -i "\"sdlshared.h\"" \
+ -i "\"localconsts.h\"" \
+ -i "\"utils/fuzzer.h\"" \
+ -i "\"$name\"" \
+ -c "$CXX" \
+ -d "$FLAGS" \
+ -s "-std=gnu++1z" \
+ -m "-c -Werror -Wall -Wextra -Wundef -Wmissing-declarations -DUCHAR_TYPE=uint16_t -DLOCALEDIR=\\\"\\\" -I/usr/include $INCLUDES -I${dir}/src" \
+ "$1" 2>&1 \
+ | grep -v \
+ -e "deheader: ./src/net/sdltcpnet.cpp has more than one inclusion of <netinet/tcp.h>" \
+ -e "deheader: remove <netinet/tcp.h> from ./src/net/sdltcpnet.cpp" \
+ -e "deheader: remove <climits> from ./src/resources/db/unitsdb.cpp" \
+ -e "portability requires" \
+ -e "SDL2_rotozoom.cpp" \
+ -e "doctest.h" \
+ | tee -a "${LOGFILE}"
diff --git a/tools/ci/scripts/deheaderS.sh b/tools/ci/scripts/deheaderS.sh
index 6f72ddb50..b9a6730c0 100755
--- a/tools/ci/scripts/deheaderS.sh
+++ b/tools/ci/scripts/deheaderS.sh
@@ -22,22 +22,24 @@ fi
echo $1 >>${LOGFILE}
echo $1
-${dir}/deheader -q -i "\"debug.h\"" \
--i "\"utils/checkutils.h\"" \
--i "\"utils/sdlcheckutils.h\"" \
--i "\"sdlshared.h\"" \
--i "\"localconsts.h\"" \
--i "\"utils/fuzzer.h\"" \
--i "\"$name\"" \
--c "$CXX" \
--d "$FLAGS" \
--s "-std=gnu++1z" \
--S "-std=gnu++1z" \
--m "-c -Werror -Wall -Wextra -Wundef -Wmissing-declarations -DUCHAR_TYPE=uint16_t -DLOCALEDIR=\\\"\\\" -I/usr/include $INCLUDES -I${dir}/src" $1 2>&1 | \
-grep -v "deheader: ./src/net/sdltcpnet.cpp has more than one inclusion of <netinet/tcp.h>" | \
-grep -v "deheader: remove <netinet/tcp.h> from ./src/net/sdltcpnet.cpp" | \
-grep -v "deheader: remove <climits> from ./src/resources/db/unitsdb.cpp" | \
-grep -v "portability requires" | \
-grep -v "SDL2_rotozoom.cpp" | \
-grep -v "doctest.h" | \
-tee -a ${LOGFILE}
+"${dir}/deheader" -q \
+ -i "\"debug.h\"" \
+ -i "\"utils/checkutils.h\"" \
+ -i "\"utils/sdlcheckutils.h\"" \
+ -i "\"sdlshared.h\"" \
+ -i "\"localconsts.h\"" \
+ -i "\"utils/fuzzer.h\"" \
+ -i "\"$name\"" \
+ -c "$CXX" \
+ -d "$FLAGS" \
+ -s "-std=gnu++1z" \
+ -S "-std=gnu++1z" \
+ -m "-c -Werror -Wall -Wextra -Wundef -Wmissing-declarations -DUCHAR_TYPE=uint16_t -DLOCALEDIR=\\\"\\\" -I/usr/include $INCLUDES -I${dir}/src" \
+ "$1" 2>&1 \
+ | grep -v -e "deheader: ./src/net/sdltcpnet.cpp has more than one inclusion of <netinet/tcp.h>" \
+ -e "deheader: remove <netinet/tcp.h> from ./src/net/sdltcpnet.cpp" \
+ -e "deheader: remove <climits> from ./src/resources/db/unitsdb.cpp" \
+ -e "portability requires" \
+ -e "SDL2_rotozoom.cpp" \
+ -e "doctest.h" \
+ | tee -a "${LOGFILE}"
diff --git a/tools/ci/scripts/init.sh b/tools/ci/scripts/init.sh
index 4b0764488..656a4d765 100755
--- a/tools/ci/scripts/init.sh
+++ b/tools/ci/scripts/init.sh
@@ -242,10 +242,12 @@ function run_tarball {
function run_mplint {
rm $ERRFILE
echo "mplint/src/mplint $*"
- mplint/src/mplint $* \
- | grep -v "src/unittests/doctest.h" \
- | grep -v "src/unittests/catch.hpp" \
- | grep -v "src/debug/" \
- >$ERRFILE
+ mplint/src/mplint "$@" \
+ | grep -v \
+ -e "src/unittests/doctest.h" \
+ -e "src/unittests/catch.hpp" \
+ -e "src/debug/" \
+ > "$ERRFILE"
+
run_check_warnings
}