gitlab-ci: print the used clang-format version in "check-tree" test

This is the authorative version that we shall use for formatting our code.
Print the version in the test.
This commit is contained in:
Thomas Haller
2023-06-01 08:49:07 +02:00
parent ebf3f70735
commit 3707a3df80
2 changed files with 9 additions and 5 deletions

View File

@@ -57,11 +57,11 @@ variables:
# #
# This is done by running `ci-fairy generate-template` and possibly bumping # This is done by running `ci-fairy generate-template` and possibly bumping
# ".default_tag". # ".default_tag".
ALPINE_TAG: 'tag-3c44b17230c3' ALPINE_TAG: 'tag-d53edbf2ebdd'
CENTOS_TAG: 'tag-a6311164b42c' CENTOS_TAG: 'tag-c374af7add25'
DEBIAN_TAG: 'tag-7f291c2d3f4d' DEBIAN_TAG: 'tag-2ded62f40aeb'
FEDORA_TAG: 'tag-a6311164b42c' FEDORA_TAG: 'tag-c374af7add25'
UBUNTU_TAG: 'tag-7f291c2d3f4d' UBUNTU_TAG: 'tag-2ded62f40aeb'
ALPINE_EXEC: 'bash .gitlab-ci/alpine-install.sh' ALPINE_EXEC: 'bash .gitlab-ci/alpine-install.sh'
CENTOS_EXEC: 'bash .gitlab-ci/fedora-install.sh' CENTOS_EXEC: 'bash .gitlab-ci/fedora-install.sh'
@@ -865,6 +865,8 @@ check-tree:
- "tier1:fedora:38@prep" - "tier1:fedora:38@prep"
stage: tier1 stage: tier1
script: script:
- date '+%Y%m%d-%H%M%S'; clang-format --version
- date '+%Y%m%d-%H%M%S'; black --version
- date '+%Y%m%d-%H%M%S'; contrib/scripts/nm-python-black-format.sh --check - date '+%Y%m%d-%H%M%S'; contrib/scripts/nm-python-black-format.sh --check
- date '+%Y%m%d-%H%M%S'; git ls-files -z -- 'po/*.po' | xargs -0 -n1 msgfmt -vc - date '+%Y%m%d-%H%M%S'; git ls-files -z -- 'po/*.po' | xargs -0 -n1 msgfmt -vc
- date '+%Y%m%d-%H%M%S'; contrib/scripts/nm-code-format.sh -n - date '+%Y%m%d-%H%M%S'; contrib/scripts/nm-code-format.sh -n

View File

@@ -203,6 +203,8 @@ check-tree:
- "tier{{default_distro.tier}}:{{default_distro.name}}:{{default_distro.versions[0]}}@prep" - "tier{{default_distro.tier}}:{{default_distro.name}}:{{default_distro.versions[0]}}@prep"
stage: tier1 stage: tier1
script: script:
- date '+%Y%m%d-%H%M%S'; clang-format --version
- date '+%Y%m%d-%H%M%S'; black --version
- date '+%Y%m%d-%H%M%S'; contrib/scripts/nm-python-black-format.sh --check - date '+%Y%m%d-%H%M%S'; contrib/scripts/nm-python-black-format.sh --check
- date '+%Y%m%d-%H%M%S'; git ls-files -z -- 'po/*.po' | xargs -0 -n1 msgfmt -vc - date '+%Y%m%d-%H%M%S'; git ls-files -z -- 'po/*.po' | xargs -0 -n1 msgfmt -vc
- date '+%Y%m%d-%H%M%S'; contrib/scripts/nm-code-format.sh -n - date '+%Y%m%d-%H%M%S'; contrib/scripts/nm-code-format.sh -n