Дополнительные правила для форматирования

This commit is contained in:
Andrei Astafev 2022-01-28 10:36:37 +03:00
parent ada2211a20
commit 5f8922409e

View File

@ -97,6 +97,30 @@ variables:
tags: ['elbrus'] tags: ['elbrus']
.check-format-sources: .check-format-sources:
variables:
CMAKE_GENERATOR: Ninja
image: focal-dev
tags: ['format']
script:
- >
mkdir build
cd build
cmake ..
cmake --build . --target check-format-sources
.myx-cmake-format-sources-check:
variables:
CMAKE_GENERATOR: Ninja
image: focal-dev
tags: ['format']
script:
- >
mkdir build
cd build
cmake ..
cmake --build . --target myx-cmake-format-sources-check
.format-sources-check-custom:
variables: variables:
CMAKE_GENERATOR: Ninja CMAKE_GENERATOR: Ninja
image: focal-dev image: focal-dev
@ -105,10 +129,5 @@ variables:
- > - >
if [ -n "${CHECK_FORMAT_SOURCES_CMD}" ]; then if [ -n "${CHECK_FORMAT_SOURCES_CMD}" ]; then
${CHECK_FORMAT_SOURCES_CMD} ${CHECK_FORMAT_SOURCES_CMD}
else
mkdir build
cd build
cmake ..
cmake --build . --target check-format-sources
fi fi