openstack-resource-agents/tox.ini
Norbert Illes a0b55d3329 Add bashate version >=0.5.0 as test dependency
We have a lots of long heredocs lines in the OCF scripts and older bashate
versions consider these as E006 violations.
From version 0.5.0, bashate doesn't check heredocs, so we specify this
version as a dependency.

In addition, this commit turns on E006 violation checking again.

Change-Id: I1ff675dd587239f0b7fd65c15b8df57a39a2c72b
Signed-off-by: Norbert Illes <norbert.e.illes@ericsson.com>
2016-03-07 19:43:10 +01:00

21 lines
547 B
INI

[tox]
envlist = bashate,syntax-check
skipsdist = True
[testenv]
whitelist_externals = bash
[testenv:bashate]
# NOTE: We have a lots of long heredocs lines in the OCF scripts and older
# bashate versions consider these as E006 violations.
# From version 0.5.0, bashate doesn't check heredocs, so we specify this
# version as a dependency.
deps = bashate>=0.5.0
commands = bash -c "bashate --verbose {toxinidir}/ocf/*"
[testenv:syntax-check]
setenv =
CHECK_PATH = {toxinidir}/ocf
commands = bash -c "{toxinidir}/utils/syntax_check.sh -a -p"