Fix to pass linters tests
Change-Id: Ia46cc8505e80b0da43c94f7090191423cf7df6db
This commit is contained in:
parent
d874cbd04e
commit
bba3884b61
@ -1,4 +1,4 @@
|
||||
[gerrit]
|
||||
host=review.fuel-infra.org
|
||||
host=review.openstack.org
|
||||
port=29418
|
||||
project=nextgen/ms-debian-base.git
|
||||
project=openstack/fuel-ccp-debian-base.git
|
||||
|
@ -1,9 +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 || echo 'Miss/ wrong FROM section in file' $file
|
||||
fgrep -q MAINTAINER $file || echo 'Miss/ wrong MAINTEINER section in file' $file
|
||||
done
|
7
tools/run-check-yaml-syntax.sh
Executable file
7
tools/run-check-yaml-syntax.sh
Executable file
@ -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
|
14
tox.ini
14
tox.ini
@ -1,16 +1,14 @@
|
||||
[tox]
|
||||
minversion = 1.6
|
||||
envlist = py34,py27,pypy,pep8
|
||||
envlist = linters,bashate
|
||||
skipsdist = True
|
||||
|
||||
[testenv:linters]
|
||||
deps = yamllint
|
||||
commands =
|
||||
{toxinidir}/tools/run-check-docker-syntax.sh
|
||||
|
||||
[testenv:pep8]
|
||||
commands =
|
||||
{toxinidir}/tools/run-check-docker-syntax.sh
|
||||
{toxinidir}/tools/run-check-yaml-syntax.sh
|
||||
|
||||
[testenv:bashate]
|
||||
commands =
|
||||
{toxinidir}/tools/run-check-docker-syntax.sh
|
||||
deps = bashate>=0.2
|
||||
whitelist_externals = bash
|
||||
commands = bash -c "find {toxinidir} -type f -name '*.sh' -not -path '*/.tox/*' -print0 | xargs -0 bashate -v"
|
||||
|
Loading…
x
Reference in New Issue
Block a user