Commit 3f413a55 authored by Laurent Peuch's avatar Laurent Peuch

chore(yamllint): add and integrate yamllint

parent 1e3fb8cdc179
Pipeline #35571 failed with stages
in 4 minutes and 35 seconds
image: python:latest
stages:
- lint
- tests
- after-tests
......@@ -72,3 +73,14 @@ trigger-cubicweb-pipeline:
project: cubicweb/cubicweb
branch: branch/default
strategy: depend
yamllint:
stage: lint
rules:
- changes:
- "**/*.yaml"
- "*.yaml"
- "**/*.yml"
- "*.yml"
script:
- tox -e yamllint
extends: default
rules:
document-start: disable
line-length: disable
indentation:
spaces: 2
......@@ -13,3 +13,4 @@ recursive-include test *
exclude .gitlab-ci.yml
prune debian
exclude .yamllint
[tox]
envlist=py3,check-manifest,black,mypy
envlist=py3,check-manifest,black,mypy,yamllint
[testenv]
deps =
......@@ -105,3 +105,9 @@ commands =
dpkg-buildpackage -us -uc --no-check-builddeps --build=source "
sh -c "cd dist && dcmd zip latest.zip *.changes"
http -f POST https://{env:JENKINS_USER}:{env:JENKINS_TOKEN}@jenkins.intra.logilab.fr/job/pkg-from-dsc/buildWithParameters DIST=buster source.zip@dist/latest.zip REPO=buster PUBLISH=true
[testenv:yamllint]
skip_install = true
deps = yamllint
commands =
yamllint .
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment