From 67f2fcae0c038ec5d1b1e92c2741bded89bc6333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20H=C3=B6ppner?= <jonas.hoeppner@garz-fricke.com> Date: Thu, 24 Feb 2022 13:32:06 +0100 Subject: [PATCH] yamllint: Add yamllint job to CI, add yamllint config Add .yamllint.yml to configure the yamllint usage, should be used as master yamllint config from other stages also. Apply small changes to yml files to match yamllint. BCS 746-000640 --- .gitlab-ci.yml | 8 ++++++++ .yamllint.yml | 7 +++++++ 2 files changed, 15 insertions(+) create mode 100644 .yamllint.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c722ee61..eecd165c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,7 @@ # --------------------------------------------------------------------------------------- # Global # --------------------------------------------------------------------------------------- +--- variables: # CI_IMAGES_BASEPATH: Environment variable configure in gitlab @@ -45,6 +46,13 @@ executable: script: - (! find ! -executable -name "*.py" -exec echo "not executable:"" {}" \; | grep .) +yamllint: + stage: analyze + timeout: 2m + script: + - yamllint -c .yamllint.yml .*.yml + + # --------------------------------------------------------------------------------------- # Stage: deploy # --------------------------------------------------------------------------------------- diff --git a/.yamllint.yml b/.yamllint.yml new file mode 100644 index 00000000..9fd616b5 --- /dev/null +++ b/.yamllint.yml @@ -0,0 +1,7 @@ +--- + +extends: default + +rules: + line-length: + max: 88 -- GitLab