Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
registration
Commits
eeca399a4c93
Commit
7c184e34
authored
Feb 16, 2021
by
Laurent Peuch
Browse files
chore(yamllint): add and integrate yamllint
parent
b7d68dd10021
Pipeline
#35260
passed with stages
in 2 minutes and 40 seconds
Changes
4
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
eeca399a
...
...
@@ -24,3 +24,14 @@ py27:
-
pip install tox
script
:
-
tox -e py27
yamllint
:
stage
:
lint
rules
:
-
changes
:
-
"
**/*.yaml"
-
"
*.yaml"
-
"
**/*.yml"
-
"
*.yml"
script
:
-
tox -e yamllint
.yamllint
0 → 100644
View file @
eeca399a
extends: default
rules:
document-start: disable
line-length: disable
indentation:
spaces: 2
MANIFEST.in
View file @
eeca399a
...
...
@@ -9,4 +9,5 @@ recursive-include test/data bootstrap_cubes *.py
prune debian
exclude *.spec
exclude .gitlab-ci.yml
\ No newline at end of file
exclude .gitlab-ci.yml
exclude .yamllint
tox.ini
View file @
eeca399a
[tox]
envlist
=
py27-{release,dev},flake8, check-manifest
envlist
=
py27-{release,dev},flake8, check-manifest
, yamllint
[testenv]
sitepackages
=
true
...
...
@@ -64,3 +64,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
"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
.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment