Browse code

Better way to stop tox running on unwanted directories

Toshio Kuratomi authored on 2015/08/28 02:41:46
Showing 1 changed files
... ...
@@ -9,7 +9,7 @@ whitelist_externals = make
9 9
 [testenv:py26]
10 10
 commands =
11 11
     python --version
12
-    python -m compileall -fq -x 'test|samples|contrib/inventory/vagrant.py|.tox' .
12
+    python -m compileall -fq -x 'test|samples|contrib/inventory/vagrant.py' lib test contrib
13 13
     make tests
14 14
 deps = -r{toxinidir}/test-requirements.txt
15 15
 whitelist_externals =
... ...
@@ -18,7 +18,7 @@ whitelist_externals =
18 18
 [testenv:py27]
19 19
 commands =
20 20
     python --version
21
-    python -m compileall -fq -x 'test|samples|.tox' .
21
+    python -m compileall -fq -x 'test|samples' lib test contrib
22 22
     make tests
23 23
 deps = -r{toxinidir}/test-requirements.txt
24 24
 whitelist_externals = make
... ...
@@ -26,7 +26,7 @@ whitelist_externals = make
26 26
 [testenv:py34]
27 27
 commands =
28 28
     python --version
29
-    python -m compileall -fq -x 'lib/ansible/module_utils|.tox' lib
29
+    python -m compileall -fq -x 'lib/ansible/module_utils' lib test contrib
30 30
     make tests
31 31
 deps = -r{toxinidir}/test-requirements.txt
32 32
 whitelist_externals = make