Fix to pass linters tests
Change-Id: I789ac5e8792097790d95b179919e6435439e852f
This commit is contained in:
parent
61749565b2
commit
43bbf2b9dc
|
@ -1,4 +1,4 @@
|
||||||
[gerrit]
|
[gerrit]
|
||||||
host=review.fuel-infra.org
|
host=review.openstack.org
|
||||||
port=29418
|
port=29418
|
||||||
project=nextgen/ms-rabbitmq.git
|
project=openstack/fuel-ccp-rabbitmq.git
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
### Temp docker syntax checker script. Doesnt really check something...
|
|
||||||
set -e
|
|
||||||
for file in $(find . -name 'Dockerfile.j2')
|
|
||||||
do
|
|
||||||
fgrep -q FROM $file
|
|
||||||
fgrep -q MAINTAINER $file
|
|
||||||
fgrep -q RUN $file
|
|
||||||
done
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
### Temp yaml syntax checker script.
|
||||||
|
set -e
|
||||||
|
for file in $(find . -name '*.yaml'); do
|
||||||
|
yamllint -d relaxed $file
|
||||||
|
done
|
15
tox.ini
15
tox.ini
|
@ -1,17 +1,14 @@
|
||||||
[tox]
|
[tox]
|
||||||
minversion = 1.6
|
minversion = 1.6
|
||||||
envlist = py34,py27,pypy,pep8
|
envlist = linters,bashate
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
|
|
||||||
[testenv:linters]
|
[testenv:linters]
|
||||||
|
deps = yamllint
|
||||||
commands =
|
commands =
|
||||||
{toxinidir}/tools/run-check-docker-syntax.sh
|
{toxinidir}/tools/run-check-yaml-syntax.sh
|
||||||
|
|
||||||
[testenv:pep8]
|
|
||||||
commands =
|
|
||||||
{toxinidir}/tools/run-check-docker-syntax.sh
|
|
||||||
|
|
||||||
[testenv:bashate]
|
[testenv:bashate]
|
||||||
commands =
|
deps = bashate>=0.2
|
||||||
{toxinidir}/tools/run-check-docker-syntax.sh
|
whitelist_externals = bash
|
||||||
|
commands = bash -c "find {toxinidir} -type f -name '*.sh' -not -path '*/.tox/*' -print0 | xargs -0 bashate -v"
|
||||||
|
|
Loading…
Reference in New Issue