From: Frank Brehm Date: Thu, 29 Dec 2022 09:08:04 +0000 (+0100) Subject: Adding .gitlab-ci.yml X-Git-Tag: v1.0~35 X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=c3203d8bcd49d1606d18989bc215fc27c8df80b5;p=pixelpark%2Fpython-packaging.git Adding .gitlab-ci.yml --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..dc0b0c4 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,27 @@ +--- + +stages: + - linter + +include: + - local: /gitlab/python-setup-template.yaml + +YAML-linter: + stage: linter + extends: .setup-python-environment + image: python:3.11 + rules: + - if: '$CI_COMMIT_TAG' + - if: $CI_COMMIT_BRANCH == "master" + - if: $CI_COMMIT_BRANCH == "main" + - if: $CI_COMMIT_BRANCH == "test" + - if: $CI_COMMIT_BRANCH =~ /test-.*/ + - if: $CI_COMMIT_BRANCH =~ /build.*/ + - if: $CI_COMMIT_BRANCH == "develop" + tags: + - docker + script: + - apt install --yes yamllint + - yamllint --config-file .yamllint.yaml --strict --format colored .gitlab-ci.yml gitlab + +# vim: et tabstop=2 expandtab shiftwidth=2 softtabstop=2 list