From bc6dc12be5083b168aec4fed66a2e835aa465724 Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Fri, 19 Feb 2021 11:12:46 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B0=D0=B2=D0=B8=D0=BB=D0=BE=20?= =?UTF-8?q?=D0=B4=D0=BB=D1=8F=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA?= =?UTF-8?q?=D0=B8=20=D1=84=D0=BE=D1=80=D0=BC=D0=B0=D1=82=D0=B8=D1=80=D0=BE?= =?UTF-8?q?=D0=B2=D0=B0=D0=BD=D0=B8=D1=8F=20=D0=BA=D0=BE=D0=B4=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 4 ++++ scheduled.yml | 14 ++++++++++++++ 2 files changed, 18 insertions(+) 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 +