Правка аргументов

This commit is contained in:
Andrei Astafev 2022-04-12 14:30:46 +03:00
parent fedb344df7
commit 86de640b93

View File

@ -1,6 +1,9 @@
variables: variables:
GIT_SUBMODULE_STRATEGY: recursive GIT_SUBMODULE_STRATEGY: recursive
GET_SOURCES_ATTEMPTS: 10 GET_SOURCES_ATTEMPTS: 10
CI_SOURCE_DIR: .
CI_BUILD_DIR: _build
CI_OUTPUT_DIR: _output
.scheduled-test: .scheduled-test:
variables: variables:
@ -42,32 +45,32 @@ variables:
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 -Bbuild -H. cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=${CI_OUTPUT_DIR} -DCPACK_PACKAGING_INSTALL_PREFIX=/opt/rtis -B${CI_BUILD_DIR} -H.
fi fi
- > - >
if [ -n "${BUILD_CMD}" ]; then if [ -n "${BUILD_CMD}" ]; then
${BUILD_CMD} ${BUILD_CMD}
else else
cmake --build build --parallel cmake --build ${CI_BUILD_DIR}
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 build cmake --install ${CI_BUILD_DIR}
cmake --build build --target package cmake --build ${CI_BUILD_DIR} --target package
cmake --build build --target package_source cmake --build ${CI_BUILD_DIR} --target package_source
fi fi
fi fi
- echo "${CI_COMMIT_SHA}" > "../${CI_JOB_NAME}.status" - echo "${CI_COMMIT_SHA}" > "../${CI_JOB_NAME}.status"
artifacts: artifacts:
paths: paths:
- build/*.gz - ${CI_BUILD_DIR}/*.gz
- build/*.xz - ${CI_BUILD_DIR}/*.xz
- build/*.deb - ${CI_BUILD_DIR}/*.deb
- build/*.changes - ${CI_BUILD_DIR}/*.changes
- build/*.dsc - ${CI_BUILD_DIR}/*.dsc
when: on_success when: on_success
expire_in: 10 days expire_in: 10 days
@ -117,8 +120,8 @@ variables:
image: focal-dev image: focal-dev
tags: ['format'] tags: ['format']
script: script:
- cmake -B build . - cmake -B ${CI_BUILD_DIR} .
- cmake --build build --target check-format-sources - cmake --build ${CI_BUILD_DIR} --target check-format-sources
.myx-cmake-format-sources-check: .myx-cmake-format-sources-check:
variables: variables:
@ -126,8 +129,8 @@ variables:
image: focal-dev image: focal-dev
tags: ['format'] tags: ['format']
script: script:
- cmake -B build . - cmake -B ${CI_BUILD_DIR} .
- cmake --build build --target myx-cmake-format-sources-check - cmake --build ${CI_BUILD_DIR} --target myx-cmake-format-sources-check
.format-sources-check-custom: .format-sources-check-custom:
variables: variables:
@ -183,9 +186,9 @@ variables:
if [ -n "${CUSTOM_ANALYZE_PVS}" ]; then if [ -n "${CUSTOM_ANALYZE_PVS}" ]; then
${CUSTOM_ANALYZE_PVS} ${CUSTOM_ANALYZE_PVS}
else else
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -B build . cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -B ${CI_BUILD_DIR} .
cmake --build build -j cmake --build ${CI_BUILD_DIR} --parallel
pvs-studio-analyzer analyze -a 29 -f build/compile_commands.json -j pvs-studio-analyzer analyze -a 29 -f ${CI_BUILD_DIR}/compile_commands.json -j
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
@ -201,8 +204,8 @@ variables:
if [ -n "${CUSTOM_ANALYZE_CLANG_TIDY}" ]; then if [ -n "${CUSTOM_ANALYZE_CLANG_TIDY}" ]; then
${CUSTOM_ANALYZE_CLANG_TIDY} ${CUSTOM_ANALYZE_CLANG_TIDY}
else else
cmake -DCMAKE_CXX_CLANG_TIDY="clang-tidy-14" -B build . cmake -DCMAKE_CXX_CLANG_TIDY="clang-tidy-14" -B ${CI_BUILD_DIR} .
cmake --build build -j cmake --build ${CI_BUILD_DIR} --parallel
fi fi
.cmake-analyze-clazy: .cmake-analyze-clazy:
@ -217,8 +220,8 @@ variables:
if [ -n "${CUSTOM_ANALYZE_CLAZY}" ]; then if [ -n "${CUSTOM_ANALYZE_CLAZY}" ]; then
${CUSTOM_ANALYZE_CLAZY} ${CUSTOM_ANALYZE_CLAZY}
else else
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -B build . cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -B ${CI_BUILD_DIR} .
find . -name "*.cpp" -print0 | xargs -0 clazy-standalone --ignore-dirs=/usr -checks=level2 -p build/compile_commands.json find . -name "*.cpp" -print0 | xargs -0 clazy-standalone --ignore-dirs=/usr -checks=level2 -p ${CI_BUILD_DIR}/compile_commands.json
fi fi
@ -228,8 +231,8 @@ variables:
image: jammy-dev image: jammy-dev
tags: ['analyze'] tags: ['analyze']
script: script:
- cmake -B build . - cmake -B ${CI_BUILD_DIR} .
- cmake --build build --target myx-cmake-analyze-pvs-studio -- -j - cmake --build ${CI_BUILD_DIR} --target myx-cmake-analyze-pvs-studio --parallel
.myx-cmake-analyze-clang-tidy: .myx-cmake-analyze-clang-tidy:
variables: variables:
@ -239,8 +242,8 @@ variables:
image: jammy-dev image: jammy-dev
tags: ['analyze'] tags: ['analyze']
script: script:
- cmake -B build . - cmake -B ${CI_BUILD_DIR} .
- cmake --build build --target myx-cmake-analyze-clang-tidy -- -j - cmake --build build --target myx-cmake-analyze-clang-tidy --parallel
.myx-cmake-analyze-clazy: .myx-cmake-analyze-clazy:
variables: variables:
@ -250,6 +253,6 @@ variables:
image: jammy-dev image: jammy-dev
tags: ['analyze'] tags: ['analyze']
script: script:
- cmake -B build . - cmake -B ${CI_BUILD_DIR} .
- cmake --build build --target myx-cmake-analyze-clazy -- -j - cmake --build ${CI_BUILD_DIR} --target myx-cmake-analyze-clazy --parallel