2019-06-05 12:31:35 -04:00
|
|
|
# Yamllint of *.yml for .gitlab-ci.yml.
|
|
|
|
# This uses rules from project root `.yamllint`.
|
|
|
|
lint-ci-gitlab:
|
2019-08-26 16:41:55 -04:00
|
|
|
extends:
|
|
|
|
- .default-retry
|
2020-02-18 10:08:51 -05:00
|
|
|
- .yaml:rules
|
2019-06-05 12:31:35 -04:00
|
|
|
image: sdesbure/yamllint:latest
|
2020-02-20 13:08:51 -05:00
|
|
|
stage: test
|
|
|
|
needs: []
|
2020-01-10 13:07:43 -05:00
|
|
|
variables:
|
|
|
|
LINT_PATHS: .gitlab-ci.yml .gitlab/ci lib/gitlab/ci/templates changelogs
|
2019-06-05 12:31:35 -04:00
|
|
|
script:
|
2020-01-10 13:07:43 -05:00
|
|
|
- '[[ ! -d "ee/" ]] || export LINT_PATHS="$LINT_PATHS ee/changelogs"'
|
|
|
|
- yamllint $LINT_PATHS
|