Переписаны инструкции для запуска статических анализаторов
This commit is contained in:
parent
6ab3af81b4
commit
2801ee0c41
111
scheduled.yml
111
scheduled.yml
@ -38,28 +38,26 @@ variables:
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
- rm -f ${CI_JOB_NAME}.status
|
- rm -f ${CI_JOB_NAME}.status
|
||||||
- mkdir build
|
|
||||||
- cd build
|
|
||||||
- >
|
- >
|
||||||
if [ -n "${CONFIGURE_CMD}" ]; then
|
if [ -n "${CONFIGURE_CMD}" ]; then
|
||||||
${CONFIGURE_CMD}
|
${CONFIGURE_CMD}
|
||||||
else
|
else
|
||||||
cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=_output -DCPACK_PACKAGING_INSTALL_PREFIX=/opt/rtis ..
|
cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=_output -DCPACK_PACKAGING_INSTALL_PREFIX=/opt/rtis -B build .
|
||||||
fi
|
fi
|
||||||
- >
|
- >
|
||||||
if [ -n "${BUILD_CMD}" ]; then
|
if [ -n "${BUILD_CMD}" ]; then
|
||||||
${BUILD_CMD}
|
${BUILD_CMD}
|
||||||
else
|
else
|
||||||
cmake --build . -- -j $(nproc)
|
cmake --build build -- -j
|
||||||
fi
|
fi
|
||||||
- >
|
- >
|
||||||
if [ -z "${CI_SHARED_ENVIRONMENT+x}" ]; then
|
if [ -z "${CI_SHARED_ENVIRONMENT+x}" ]; then
|
||||||
if [ -n "${PACKAGE_CMD}" ]; then
|
if [ -n "${PACKAGE_CMD}" ]; then
|
||||||
${PACKAGE_CMD}
|
${PACKAGE_CMD}
|
||||||
else
|
else
|
||||||
cmake --install .
|
cmake --install build
|
||||||
cmake --build . --target package
|
cmake --build build --target package
|
||||||
cmake --build . --target package_source
|
cmake --build build --target package_source
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
- echo "${CI_COMMIT_SHA}" > "../${CI_JOB_NAME}.status"
|
- echo "${CI_COMMIT_SHA}" > "../${CI_JOB_NAME}.status"
|
||||||
@ -117,10 +115,8 @@ variables:
|
|||||||
image: focal-dev
|
image: focal-dev
|
||||||
tags: ['format']
|
tags: ['format']
|
||||||
script:
|
script:
|
||||||
- mkdir build
|
- cmake -B build .
|
||||||
- cd build
|
- cmake --build build --target check-format-sources
|
||||||
- cmake ..
|
|
||||||
- cmake --build . --target check-format-sources
|
|
||||||
|
|
||||||
.myx-cmake-format-sources-check:
|
.myx-cmake-format-sources-check:
|
||||||
variables:
|
variables:
|
||||||
@ -128,10 +124,8 @@ variables:
|
|||||||
image: focal-dev
|
image: focal-dev
|
||||||
tags: ['format']
|
tags: ['format']
|
||||||
script:
|
script:
|
||||||
- mkdir build
|
- cmake -B build .
|
||||||
- cd build
|
- cmake --build build --target myx-cmake-format-sources-check
|
||||||
- cmake ..
|
|
||||||
- cmake --build . --target myx-cmake-format-sources-check
|
|
||||||
|
|
||||||
.format-sources-check-custom:
|
.format-sources-check-custom:
|
||||||
variables:
|
variables:
|
||||||
@ -144,7 +138,37 @@ variables:
|
|||||||
${CHECK_FORMAT_SOURCES_CMD}
|
${CHECK_FORMAT_SOURCES_CMD}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
.analyze-pvs:
|
|
||||||
|
.qmake-analyze-pvs:
|
||||||
|
image: jammy-dev
|
||||||
|
tags: ['analyze']
|
||||||
|
script:
|
||||||
|
- >
|
||||||
|
qmake
|
||||||
|
bear -- make -j$(nproc)
|
||||||
|
pvs-studio-analyzer analyze -a 29 -j$(nproc)
|
||||||
|
plog-converter -a "GA:1,2,3;64:1;OP:1,2;CS:1,2" -t errorfile PVS-Studio.log
|
||||||
|
|
||||||
|
.qmake-analyze-clang-tidy:
|
||||||
|
image: jammy-dev
|
||||||
|
tags: ['analyze']
|
||||||
|
script:
|
||||||
|
- >
|
||||||
|
qmake
|
||||||
|
bear -- make -j$(nproc)
|
||||||
|
run-clang-tidy-14 -checks=-*,bugprone-*,clang-analyzer-*,misc-*,modernize-*,performance-*,portability-*
|
||||||
|
|
||||||
|
.qmake-analyze-clazy:
|
||||||
|
image: jammy-dev
|
||||||
|
tags: ['analyze']
|
||||||
|
script:
|
||||||
|
- >
|
||||||
|
qmake
|
||||||
|
bear -- make -j$(nproc)
|
||||||
|
find . -name "*.cpp" -print0 | xargs -0 clazy-standalone --ignore-dirs=/usr -checks=level2 -p compile_commands.json
|
||||||
|
|
||||||
|
|
||||||
|
.cmake-analyze-pvs:
|
||||||
variables:
|
variables:
|
||||||
CMAKE_GENERATOR: Ninja
|
CMAKE_GENERATOR: Ninja
|
||||||
image: jammy-dev
|
image: jammy-dev
|
||||||
@ -160,7 +184,7 @@ variables:
|
|||||||
plog-converter -a "GA:1,2,3;64:1;OP:1,2;CS:1,2" -t errorfile PVS-Studio.log
|
plog-converter -a "GA:1,2,3;64:1;OP:1,2;CS:1,2" -t errorfile PVS-Studio.log
|
||||||
fi
|
fi
|
||||||
|
|
||||||
.analyze-clang-tidy:
|
.cmake-analyze-clang-tidy:
|
||||||
variables:
|
variables:
|
||||||
CMAKE_GENERATOR: Ninja
|
CMAKE_GENERATOR: Ninja
|
||||||
CXX: clang++-14
|
CXX: clang++-14
|
||||||
@ -176,3 +200,56 @@ variables:
|
|||||||
cmake --build build -j
|
cmake --build build -j
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
.cmake-analyze-clazy:
|
||||||
|
variables:
|
||||||
|
CMAKE_GENERATOR: Ninja
|
||||||
|
CXX: clang++-14
|
||||||
|
CC: clang-14
|
||||||
|
image: jammy-dev
|
||||||
|
tags: ['analyze']
|
||||||
|
script:
|
||||||
|
- >
|
||||||
|
if [ -n "${CUSTOM_ANALYZE_CLAZY}" ]; then
|
||||||
|
${CUSTOM_ANALYZE_CLAZY}
|
||||||
|
else
|
||||||
|
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -B build .
|
||||||
|
find . -name "*.cpp" -print0 | xargs -0 clazy-standalone --ignore-dirs=/usr -checks=level2 -p build/compile_commands.json
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
.myx-cmake-analyze-pvs-studio:
|
||||||
|
variables:
|
||||||
|
CMAKE_GENERATOR: Ninja
|
||||||
|
CXX: clang++-14
|
||||||
|
CC: clang-14
|
||||||
|
image: jammy-dev
|
||||||
|
tags: ['analyze']
|
||||||
|
script:
|
||||||
|
- >
|
||||||
|
cmake -B build .
|
||||||
|
cmake --build build --target myx-cmake-analyze-pvs-studio -- -j
|
||||||
|
|
||||||
|
.myx-cmake-analyze-clang-tidy:
|
||||||
|
variables:
|
||||||
|
CMAKE_GENERATOR: Ninja
|
||||||
|
CXX: clang++-14
|
||||||
|
CC: clang-14
|
||||||
|
image: jammy-dev
|
||||||
|
tags: ['analyze']
|
||||||
|
script:
|
||||||
|
- >
|
||||||
|
cmake -B build .
|
||||||
|
cmake --build build --target myx-cmake-analyze-clang-tidy -- -j
|
||||||
|
|
||||||
|
.myx-cmake-analyze-clazy:
|
||||||
|
variables:
|
||||||
|
CMAKE_GENERATOR: Ninja
|
||||||
|
CXX: clang++-14
|
||||||
|
CC: clang-14
|
||||||
|
image: jammy-dev
|
||||||
|
tags: ['analyze']
|
||||||
|
script:
|
||||||
|
- >
|
||||||
|
cmake -B build .
|
||||||
|
cmake --build build --target myx-cmake-analyze-clazy -- -j
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user