forked from cloudify-cosmo/cloudify-ansible-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
35 lines (28 loc) · 995 Bytes
/
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
[tox]
envlist = nosetests,flake8
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:flake8]
commands =
flake8 cloudify_ansible
flake8 cloudify_ansible_sdk
[testenv:nosetests]
commands =
nosetests --cover-html --with-coverage --cover-package=cloudify_ansible --with-xunit --xunit-file=nosetests.xml --cover-xml --cover-xml-file=coverage.xml cloudify_ansible
nosetests --cover-html --with-coverage --cover-package=cloudify_ansible_sdk --with-xunit --xunit-file=nosetests.xml --cover-xml --cover-xml-file=coverage.xml cloudify_ansible_sdk
[testenv:venv]
commands = {posargs}
[flake8]
show-source = True
ignore =
exclude=.venv,.tox,dist,*egg,etc,build,bin,lib,local,share
filename=*.py