Fix to pass linters tests

Change-Id: I711def7324b37d5fa2fb34c7bab7ac034150afcc
This commit is contained in:
Artur Zarzycki 2016-07-06 16:41:27 +02:00
parent 030f90f023
commit 0dcb361e7c
4 changed files with 12 additions and 22 deletions

View File

@ -1,4 +1,4 @@
[gerrit]
host=review.fuel-infra.org
host=review.openstack.org
port=29418
project=nextgen/ms-mariadb.git
project=openstack/fuel-ccp-mariadb.git

View File

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

7
tools/run-check-yaml-syntax.sh Executable file
View 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

13
tox.ini
View File

@ -1,19 +1,12 @@
[tox]
minversion = 1.6
envlist = py34,py27,pypy,pep8
envlist = linters,py27
skipsdist = True
[testenv:linters]
deps = yamllint
commands =
{toxinidir}/tools/run-check-docker-syntax.sh
[testenv:pep8]
commands =
{toxinidir}/tools/run-check-docker-syntax.sh
[testenv:bashate]
commands =
{toxinidir}/tools/run-check-docker-syntax.sh
{toxinidir}/tools/run-check-yaml-syntax.sh
[testenv:py27]
deps =