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:
Saul Wold 2019-08-29 15:19:23 -07:00
parent 7ff98a067f
commit a93d482461
2 changed files with 5 additions and 15 deletions

View File

@ -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

View File

@ -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