Переписаны инструкции для запуска статических анализаторов
This commit is contained in:
parent
6ab3af81b4
commit
2801ee0c41
111
scheduled.yml
111
scheduled.yml
@ -38,28 +38,26 @@ variables:
|
||||
fi
|
||||
fi
|
||||
- rm -f ${CI_JOB_NAME}.status
|
||||
- mkdir build
|
||||
- cd build
|
||||
- >
|
||||
if [ -n "${CONFIGURE_CMD}" ]; then
|
||||
${CONFIGURE_CMD}
|
||||
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
|
||||
- >
|
||||
if [ -n "${BUILD_CMD}" ]; then
|
||||
${BUILD_CMD}
|
||||
else
|
||||
cmake --build . -- -j $(nproc)
|
||||
cmake --build build -- -j
|
||||
fi
|
||||
- >
|
||||
if [ -z "${CI_SHARED_ENVIRONMENT+x}" ]; then
|
||||
if [ -n "${PACKAGE_CMD}" ]; then
|
||||
${PACKAGE_CMD}
|
||||
else
|
||||
cmake --install .
|
||||
cmake --build . --target package
|
||||
cmake --build . --target package_source
|
||||
cmake --install build
|
||||
cmake --build build --target package
|
||||
cmake --build build --target package_source
|
||||
fi
|
||||
fi
|
||||
- echo "${CI_COMMIT_SHA}" > "../${CI_JOB_NAME}.status"
|
||||
@ -117,10 +115,8 @@ variables:
|
||||
image: focal-dev
|
||||
tags: ['format']
|
||||
script:
|
||||
- mkdir build
|
||||
- cd build
|
||||
- cmake ..
|
||||
- cmake --build . --target check-format-sources
|
||||
- cmake -B build .
|
||||
- cmake --build build --target check-format-sources
|
||||
|
||||
.myx-cmake-format-sources-check:
|
||||
variables:
|
||||
@ -128,10 +124,8 @@ variables:
|
||||
image: focal-dev
|
||||
tags: ['format']
|
||||
script:
|
||||
- mkdir build
|
||||
- cd build
|
||||
- cmake ..
|
||||
- cmake --build . --target myx-cmake-format-sources-check
|
||||
- cmake -B build .
|
||||
- cmake --build build --target myx-cmake-format-sources-check
|
||||
|
||||
.format-sources-check-custom:
|
||||
variables:
|
||||
@ -144,7 +138,37 @@ variables:
|
||||
${CHECK_FORMAT_SOURCES_CMD}
|
||||
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:
|
||||
CMAKE_GENERATOR: Ninja
|
||||
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
|
||||
fi
|
||||
|
||||
.analyze-clang-tidy:
|
||||
.cmake-analyze-clang-tidy:
|
||||
variables:
|
||||
CMAKE_GENERATOR: Ninja
|
||||
CXX: clang++-14
|
||||
@ -176,3 +200,56 @@ variables:
|
||||
cmake --build build -j
|
||||
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