-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathtox.ini
47 lines (40 loc) · 1.21 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
43
44
45
46
47
[tox]
envlist = unittesting,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}/requirements-3.6.txt
-r{toxinidir}/test-requirements.txt
whitelist_externals = bash
[testenv:linting]
exclude=.venv,.tox,dist,*egg,etc,build,bin,lib,local,share
commands =
flake8 cloudify_ansible --exclude cloudify_ansible/ansible-cloudify-ctx/,cloudify_ansible/ansible/
flake8 cloudify_ansible_sdk
[testenv:unittesting]
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}
[linting]
show-source = True
ignore =
exclude=
.venv
.tox
dist
*egg
etc
build
bin
lib
local
share
cloudify_ansible/ansible-cloudify-ctx/modules/cloudify_runtime_property.py
filename=*.py