Skip to content
Snippets Groups Projects
Commit 910d4076dd06 authored by Laurent Peuch's avatar Laurent Peuch
Browse files

chore(yamllint): add and integrate yamllint

parent 38f2f672e541
No related branches found
Tags 1.14.1
1 merge request!8chore(yamllint): add and integrate yamllint
Pipeline #35283 passed
......@@ -11,3 +11,13 @@
artifacts:
paths:
- py3-deprecated-warnings.json
yamllint:
rules:
- changes:
- "**/*.yaml"
- "*.yaml"
- "**/*.yml"
- "*.yml"
script:
- tox -e yamllint
extends: default
rules:
document-start: disable
line-length: disable
indentation:
spaces: 2
......@@ -9,3 +9,4 @@
recursive-include debian changelog compat control copyright rules
include cubicweb-comment.spec
exclude .gitlab-ci.yml
exclude .yamllint
[tox]
envlist = py27, py3, flake8
envlist = py27, py3, flake8, yamllint
[testenv]
deps =
......@@ -56,3 +56,9 @@
sh -c "PACKAGE_NAME=$(python3 setup.py --name) && VERSION=$(python3 setup.py --version) && cd dist && tar xf $PACKAGE_NAME-$VERSION.tar.gz && cd $PACKAGE_NAME-$VERSION && cp -a {toxinidir}/debian . && mk-origtargz --rename ../$PACKAGE_NAME-$VERSION.tar.gz && 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 .
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment