Правило для проверки форматирования кода

This commit is contained in:
Andrei Astafev 2021-02-19 11:12:46 +03:00
parent 7f4501187c
commit bc6dc12be5
2 changed files with 18 additions and 0 deletions

View File

@ -24,3 +24,7 @@ focal-nightly:
elbrus-nightly:
extends: .scheduled-elbrus
check-format-sources:
only:
- merge_requests
extends: .check-format-sources

View File

@ -93,3 +93,17 @@ variables:
extends: .scheduled-test
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