Add specfile linter and build templates
This moves the linters to use the zuul-jobs Remove the old flock-check-packaging Depends-On: https://review.opendev.org/#/c/679353 Change-Id: I5abc8dd461e2728d43eddc528f23d940fc45a32a Signed-off-by: Saul Wold <sgw@linux.intel.com>
This commit is contained in:
parent
7ff98a067f
commit
a93d482461
13
.zuul.yaml
13
.zuul.yaml
@ -5,14 +5,14 @@
|
||||
- publish-stx-docs
|
||||
- stx-api-ref-jobs
|
||||
- stx-release-notes-jobs
|
||||
- stx-lint-specfile-jobs
|
||||
- stx-build-rpms
|
||||
check:
|
||||
jobs:
|
||||
- flock-devstack-fault
|
||||
- openstack-tox-linters
|
||||
- openstack-tox-pep8
|
||||
- stx-fault-build
|
||||
- flock-check-packaging:
|
||||
voting: false
|
||||
gate:
|
||||
jobs:
|
||||
- flock-devstack-fault
|
||||
@ -51,12 +51,3 @@
|
||||
fault: https://opendev.org/starlingx/fault
|
||||
integ: https://opendev.org/starlingx/integ
|
||||
update: https://opendev.org/starlingx/update
|
||||
|
||||
- job:
|
||||
name: flock-check-packaging
|
||||
parent: tox
|
||||
description: Sanity check RPM spec files
|
||||
required-projects:
|
||||
- name: starlingx/integ
|
||||
vars:
|
||||
tox_envlist: rpm-packaging-lint
|
||||
|
7
tox.ini
7
tox.ini
@ -22,14 +22,13 @@ install_command = pip install -U \
|
||||
deps = -r{toxinidir}/test-requirements.txt
|
||||
whitelist_externals = bash
|
||||
commands =
|
||||
bash -c 'if [ -d {toxinidir}/../integ ]; then integdir={toxinidir}/../integ; \
|
||||
else integdir={toxinidir}/../stx-integ; \
|
||||
fi; \
|
||||
bash -c 'if [ -d {toxinidir}/../zuul-jobs ]; then \
|
||||
find . \
|
||||
-not \( -type d -name .?\* -prune \) \
|
||||
-not \( -type d -name centos -prune \) \
|
||||
-type f -name \*.spec \
|
||||
-print0 | xargs -0 $integdir/tools/spec-tools/speclint.sh'
|
||||
-print0 | xargs -0 {toxinidir}/../zuul-jobs/scripts/speclint.sh; \
|
||||
fi'
|
||||
|
||||
[testenv:linters]
|
||||
basepython = python3
|
||||
|
Loading…
Reference in New Issue
Block a user