Browse Source

Merge "fix tox python3 overrides"

Zuul 5 months ago
parent
commit
abd68381ca
1 changed files with 10 additions and 0 deletions
  1. 10
    0
      tox.ini

+ 10
- 0
tox.ini View File

@@ -47,23 +47,27 @@ commands =
47 47
     coverage xml -o cover/coverage.xml
48 48
 
49 49
 [testenv:debug]
50
+basepython = python3
50 51
 description = Allows to run unit-test with debug mode enabled
51 52
 commands =
52 53
   {[testenv]commands}
53 54
   oslo_debug_helper -t {env:OS_TEST_PATH} {posargs}
54 55
 
55 56
 [testenv:bashate]
57
+basepython = python3
56 58
 description = Validates (pep8-like) devstack plugins
57 59
 skip_install = True
58 60
 usedevelop = False
59 61
 commands = bash {toxinidir}/tools/bashate.sh
60 62
 
61 63
 [testenv:bandit]
64
+basepython = python3
62 65
 skip_install = True
63 66
 usedevelop = False
64 67
 commands = bandit -r monasca_events_api -n5 -x monasca_events_api/tests
65 68
 
66 69
 [testenv:flake8]
70
+basepython = python3
67 71
 skip_install = True
68 72
 usedevelop = False
69 73
 commands =
@@ -87,6 +91,7 @@ commands =
87 91
   {[testenv:releasenotes]commands}
88 92
 
89 93
 [testenv:api-ref]
94
+basepython = python3
90 95
 description = Called from CI scripts to test and publish the API Ref
91 96
 commands =
92 97
   rm -rf api-ref/build
@@ -101,6 +106,7 @@ commands =
101 106
   sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
102 107
 
103 108
 [testenv:devdocs]
109
+basepython = python3
104 110
 description = Builds developer documentation
105 111
 commands =
106 112
   {[testenv]commands}
@@ -110,6 +116,7 @@ commands =
110 116
   python setup.py build_sphinx
111 117
 
112 118
 [testenv:checkniceness]
119
+basepython = python3
113 120
 description = Validates (pep-like) documentation
114 121
 skip_install = True
115 122
 usedevelop = False
@@ -119,6 +126,7 @@ commands =
119 126
   doc8 --file-encoding utf-8 {toxinidir}/releasenotes
120 127
 
121 128
 [testenv:checkjson]
129
+basepython = python3
122 130
 description = Validates all json samples inside doc folder
123 131
 deps =
124 132
 whitelist_externals =
@@ -129,10 +137,12 @@ commands =
129 137
   bash -c '! find doc/ -type f -name *.json | xargs -t -n1 python -m json.tool 2>&1 > /dev/null | grep -B1 -v ^python'
130 138
 
131 139
 [testenv:genconfig]
140
+basepython = python3
132 141
 description = Generates sample documentation file for monasca-events-api
133 142
 commands = oslo-config-generator --config-file=config-generator/config.conf
134 143
 
135 144
 [testenv:genpolicy]
145
+basepython = python3
136 146
 description = Generates sample policy.yaml file for monasca-events-api
137 147
 commands = oslopolicy-sample-generator --config-file=config-generator/policy.conf
138 148
 

Loading…
Cancel
Save