Commit c5b015b1 authored by Laurent Peuch's avatar Laurent Peuch
Browse files

chore(yamllint): add and integrate yamllint

parent 6fb952d7444c
Pipeline #35247 failed with stages
in 43 seconds
......@@ -24,3 +24,16 @@ install:
stage: deploy
script:
- python setup.py install
yamllint:
stage: lint
rules:
- changes:
- "**/*.yaml"
- "*.yaml"
- "**/*.yml"
- "*.yml"
before_script:
- pip install tox
script:
- tox -e yamllint
extends: default
rules:
document-start: disable
line-length: disable
indentation:
spaces: 2
......@@ -6,3 +6,4 @@ recursive-include i18n *.po
recursive-include wdoc *
include cubicweb_slickgrid/VERSION
include tox.ini
exclude .yamllint
[tox]
envlist = flake8,pytest
envlist = flake8,pytest,yamllint
toxworkdir={env:TOX_WORK_DIR:.tox}
[testenv:flake8]
......@@ -60,3 +60,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