Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 883230eb authored by gama's avatar gama
Browse files

[CI] Add analysis pass for warnings

parent b6ad9aae
No related branches found
No related tags found
No related merge requests found
Pipeline #50143 failed
......@@ -19,13 +19,12 @@ lint:linux:
CPM_SOURCE_CACHE: "cpm_cache"
script:
- cmake --preset x64-linux-debug
- cmake --build --preset x64-linux-debug --target sandbox_lib_analysis | tee analysis.log
# Fail the job if errors were found:
- ! grep "warning" analysis.log
- cmake --build --preset x64-linux-debug --target sandbox_lib_analysis | tee build.log
- chmod +x ./ci/analyse_log.sh && /bin/sh ./ci/analyse_log.sh
artifacts:
expire_in: 2 days
paths:
- analysis.log
- warnings.log
build:linux:
stage: build
......
......@@ -184,7 +184,6 @@
{
"name": "x64-linux-ci",
"inherits": [ "x64", "linux-gcc", "linux-asan" ],
"binaryDir": "${sourceDir}/build/",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
......
#!/usr/bin/env bash
set -e
#~set -x
echo "Analysing log"
grep "warning:" -i build.log | tee warnings.log
if [ -s warnings.log ]; then
warnings_count=$(cat warnings.log | wc -l)
echo "Found $warnings_count warning(s):"
cat warnings.log
exit 1
else
echo "No warnings in build."
exit
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment