Merge "Add specfile linter and build templates"
This commit is contained in:
commit
ca47b81a9f
13
.zuul.yaml
13
.zuul.yaml
@ -5,14 +5,14 @@
|
|||||||
- publish-stx-docs
|
- publish-stx-docs
|
||||||
- stx-api-ref-jobs
|
- stx-api-ref-jobs
|
||||||
- stx-release-notes-jobs
|
- stx-release-notes-jobs
|
||||||
|
- stx-lint-specfile-jobs
|
||||||
|
- stx-build-rpms
|
||||||
check:
|
check:
|
||||||
jobs:
|
jobs:
|
||||||
- flock-devstack-fault
|
- flock-devstack-fault
|
||||||
- openstack-tox-linters
|
- openstack-tox-linters
|
||||||
- openstack-tox-pep8
|
- openstack-tox-pep8
|
||||||
- stx-fault-build
|
- stx-fault-build
|
||||||
- flock-check-packaging:
|
|
||||||
voting: false
|
|
||||||
gate:
|
gate:
|
||||||
jobs:
|
jobs:
|
||||||
- flock-devstack-fault
|
- flock-devstack-fault
|
||||||
@ -51,12 +51,3 @@
|
|||||||
fault: https://opendev.org/starlingx/fault
|
fault: https://opendev.org/starlingx/fault
|
||||||
integ: https://opendev.org/starlingx/integ
|
integ: https://opendev.org/starlingx/integ
|
||||||
update: https://opendev.org/starlingx/update
|
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
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
whitelist_externals = bash
|
whitelist_externals = bash
|
||||||
commands =
|
commands =
|
||||||
bash -c 'if [ -d {toxinidir}/../integ ]; then integdir={toxinidir}/../integ; \
|
bash -c 'if [ -d {toxinidir}/../zuul-jobs ]; then \
|
||||||
else integdir={toxinidir}/../stx-integ; \
|
|
||||||
fi; \
|
|
||||||
find . \
|
find . \
|
||||||
-not \( -type d -name .?\* -prune \) \
|
-not \( -type d -name .?\* -prune \) \
|
||||||
-not \( -type d -name centos -prune \) \
|
-not \( -type d -name centos -prune \) \
|
||||||
-type f -name \*.spec \
|
-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]
|
[testenv:linters]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
|
Loading…
Reference in New Issue
Block a user