Browse Source

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>
Norbert Illes 3 years ago
parent
commit
6ad8eb01ae
2 changed files with 6 additions and 4 deletions
  1. 0
    3
      Makefile
  2. 6
    1
      tox.ini

+ 0
- 3
Makefile View File

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

+ 6
- 1
tox.ini View File

@@ -1,5 +1,5 @@
1 1
 [tox]
2
-envlist = bashate
2
+envlist = bashate,syntax-check
3 3
 skipsdist = True
4 4
 
5 5
 [testenv]
@@ -9,3 +9,8 @@ whitelist_externals = bash
9 9
 deps = bashate
10 10
 commands = bash -c "bashate --verbose {toxinidir}/ocf/*"
11 11
 
12
+[testenv:syntax-check]
13
+setenv =
14
+    CHECK_PATH = {toxinidir}/ocf
15
+commands = bash -c "{toxinidir}/utils/syntax_check.sh -a -p"
16
+

Loading…
Cancel
Save