Правило для проверки форматирования кода
This commit is contained in:
parent
7f4501187c
commit
bc6dc12be5
@ -24,3 +24,7 @@ focal-nightly:
|
|||||||
elbrus-nightly:
|
elbrus-nightly:
|
||||||
extends: .scheduled-elbrus
|
extends: .scheduled-elbrus
|
||||||
|
|
||||||
|
check-format-sources:
|
||||||
|
only:
|
||||||
|
- merge_requests
|
||||||
|
extends: .check-format-sources
|
||||||
|
@ -93,3 +93,17 @@ variables:
|
|||||||
extends: .scheduled-test
|
extends: .scheduled-test
|
||||||
tags: ['elbrus']
|
tags: ['elbrus']
|
||||||
|
|
||||||
|
.check-format-sources:
|
||||||
|
image: focal-dev
|
||||||
|
tags: ['docker']
|
||||||
|
script:
|
||||||
|
- >
|
||||||
|
if [ -n "${CHECK_FORMAT_SOURCES_CMD}" ]; then
|
||||||
|
${CHECK_FORMAT_SOURCES_CMD}
|
||||||
|
else
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake -G Ninja ..
|
||||||
|
ninja check-format-sources
|
||||||
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user