Move syntax-check test to tox.ini

This commit moves the syntax-check test from a make target to tox.ini

Change-Id: Id15320c589afea2b3a4a5cff5e7fa9c5c2b9d0b8
Signed-off-by: Norbert Illes <norbert.e.illes@ericsson.com>
This commit is contained in:
Norbert Illes 2016-02-24 14:48:49 +01:00
parent e7672a0aa9
commit 6ad8eb01ae
2 changed files with 6 additions and 4 deletions

View File

@ -26,6 +26,3 @@ install:
for file in ocf/*; do \
$(INSTALL) -t $(DESTDIR)/usr/lib/ocf/resource.d/openstack -m 0755 $${file} ; \
done
syntax-check:
utils/syntax_check.sh -a -p

View File

@ -1,5 +1,5 @@
[tox]
envlist = bashate
envlist = bashate,syntax-check
skipsdist = True
[testenv]
@ -9,3 +9,8 @@ whitelist_externals = bash
deps = bashate
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"