Commit 4bbbd434 authored by Laurent Peuch's avatar Laurent Peuch
Browse files

chore(yamllint): add and integrate yamllint

parent b4559d6bcac9
Pipeline #35275 passed with stage
in 3 minutes and 16 seconds
...@@ -11,3 +11,13 @@ py3: ...@@ -11,3 +11,13 @@ py3:
artifacts: artifacts:
paths: paths:
- py3-deprecated-warnings.json - 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
...@@ -12,3 +12,4 @@ include test/data/bootstrap_cubes ...@@ -12,3 +12,4 @@ include test/data/bootstrap_cubes
prune debian prune debian
exclude .gitlab-ci.yml exclude .gitlab-ci.yml
exclude .yamllint
[tox] [tox]
envlist = py3,check-manifest envlist = py3,check-manifest,yamllint
[testenv] [testenv]
deps = deps =
...@@ -52,3 +52,9 @@ commands = ...@@ -52,3 +52,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