Merge "Add specfile linter and build templates"

This commit is contained in:
Zuul 2019-09-12 22:10:16 +00:00 committed by Gerrit Code Review
commit ca47b81a9f
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