diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 10c60ed..1e723d7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -24,3 +24,7 @@ focal-nightly: elbrus-nightly: extends: .scheduled-elbrus +check-format-sources: + only: + - merge_requests + extends: .check-format-sources diff --git a/scheduled.yml b/scheduled.yml index 0f279da..22e1a18 100644 --- a/scheduled.yml +++ b/scheduled.yml @@ -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 +