Commit 785c8b3c authored by Laurent Peuch's avatar Laurent Peuch
Browse files

chore(yamllint): add and integrate yamllint

parent f32da6f104ae
Pipeline #35279 passed with stage
in 2 minutes and 34 seconds
......@@ -14,3 +14,13 @@ py3:
check-manifest:
script: tox -e check-manifest
yamllint:
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 @@ prune debian
exclude cubicweb-elasticsearch.spec
exclude Makefile
include README.rst
exclude .yamllint
[tox]
envlist = py3,flake8,check-manifest
envlist = py3,flake8,check-manifest,yamllint
[testenv]
sitepackages = true
......@@ -111,3 +111,9 @@ commands =
sh -c "if [ -z $DEBEMAIL ] || [ -z $DEBFULLNAME ] ; then echo Define the env variable DEBEMAIL and DEBFULLNAME ; exit 1 ; fi"
sh -c "echo -c 'Please verify what should be should be committed'"
sh -c "VERSION=$(python3 setup.py --version) && dch -v $VERSION'-'1 -D unstable 'New upstream release' && hg commit -i -m '[pkg] version '$VERSION && hg tag -r . $VERSION debian/$VERSION"
[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