diff --git a/Makefile b/Makefile index 96395dc..22e75fa 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/tox.ini b/tox.ini index 790ea29..e0da2d9 100644 --- a/tox.ini +++ b/tox.ini @@ -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" +