448b263e6478841465c1473f277d7daf8a0a1bb4
[osm/RO.git] / RO-VIM-vmware / tox.ini
1 ##
2 # Copyright VMware Inc.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
12 # implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 ##
16
17 [tox]
18 envlist = py3
19 toxworkdir={homedir}/.tox
20
21 [testenv]
22 basepython = python3
23 install_command = python3 -m pip install -r requirements.txt -U {opts} {packages}
24 # deps = -r{toxinidir}/test-requirements.txt
25 commands=python3 -m unittest discover -v
26
27 [testenv:flake8]
28 basepython = python3
29 deps = flake8
30 commands = flake8 osm_rovim_vmware --max-line-length 120 \
31 --exclude .svn,CVS,.gz,.git,__pycache__,.tox,local,temp --ignore W291,W293,E226,W504
32
33 [testenv:unittest]
34 basepython = python3
35 commands = python3 -m unittest osm_rovim_vmware.tests
36
37 [testenv:build]
38 basepython = python3
39 deps = stdeb
40 setuptools-version-command
41 commands = python3 setup.py --command-packages=stdeb.command bdist_deb
42