Commit 8e36c210 authored by Laurent Peuch's avatar Laurent Peuch
Browse files

chore(yamllint): add and integrate yamllint

parent 3c72495393d4
Pipeline #34935 passed with stages
in 1 minute and 30 seconds
...@@ -22,3 +22,14 @@ py3: ...@@ -22,3 +22,14 @@ py3:
artifacts: artifacts:
paths: paths:
- py3-deprecated-warnings.json - py3-deprecated-warnings.json
yamllint:
stage: lint
rules:
- changes:
- "**/*.yaml"
- "*.yaml"
- "**/*.yml"
- "*.yml"
script:
- tox -e yamllint
extends: default
rules:
document-start: disable
line-length: disable
...@@ -11,3 +11,4 @@ recursive-include doc *.rst Makefile README.rst ...@@ -11,3 +11,4 @@ recursive-include doc *.rst Makefile README.rst
prune debian prune debian
exclude cubicweb-bootstrap.spec exclude cubicweb-bootstrap.spec
exclude .gitlab-ci.yml exclude .gitlab-ci.yml
exclude .yamllint
[tox] [tox]
envlist = py27, py3, flake8, check-manifest envlist = py27, py3, flake8, check-manifest, yamllint
[testenv] [testenv]
deps = deps =
...@@ -63,3 +63,9 @@ commands = ...@@ -63,3 +63,9 @@ commands =
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 "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" 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 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