Дополнительные правила для форматирования
This commit is contained in:
parent
ada2211a20
commit
5f8922409e
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user