forked from cloudify-cosmo/cloudify-vsphere-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
42 lines (35 loc) · 1.73 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
[tox]
envlist = nosetest,linting
minversion = 1.6
skipsdist = True
[testenv]
setenv =
VIRTUAL_ENV={envdir}
# NOTE: relative paths were used due to '-w' flag for nosetests util
usedevelop = True
install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/dev-requirements.txt
-r{toxinidir}/test-requirements.txt
whitelist_externals = bash
[testenv:linting]
commands =
flake8 vsphere_plugin_common
flake8 vsphere_server_plugin
flake8 vsphere_network_plugin
flake8 vsphere_storage_plugin
flake8 cloudify_vsphere
[testenv:unittesting]
commands =
nosetests --exclude-dir=vsphere_plugin_common/tests/utils --cover-html --with-coverage --cover-package=vsphere_plugin_common --with-xunit --xunit-file=nosetests.xml --cover-xml --cover-xml-file=coverage.xml vsphere_plugin_common
nosetests --cover-html --with-coverage --cover-package=vsphere_server_plugin --with-xunit --xunit-file=nosetests.xml --cover-xml --cover-xml-file=coverage.xml vsphere_server_plugin
nosetests --cover-html --with-coverage --cover-package=vsphere_network_plugin --with-xunit --xunit-file=nosetests.xml --cover-xml --cover-xml-file=coverage.xml vsphere_network_plugin
nosetests --cover-html --with-coverage --cover-package=vsphere_storage_plugin --with-xunit --xunit-file=nosetests.xml --cover-xml --cover-xml-file=coverage.xml vsphere_storage_plugin
nosetests --cover-html --with-coverage --cover-package=cloudify_vsphere --with-xunit --xunit-file=nosetests.xml --cover-xml --cover-xml-file=coverage.xml cloudify_vsphere
pytest -s vsphere_plugin_common/tests/utils/op_test.py
[testenv:venv]
commands = {posargs}
[linting]
show-source = True
ignore =
exclude=.venv,.tox,dist,*egg,etc,build,bin,lib,local,share
filename=*.py