forked from Danny10W/ctera-ansible-collections
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
50 lines (45 loc) · 987 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
[tox]
skipsdist = True
envlist = sanity,unittests
[testenv]
install_command = pip install --pre --extra-index-url={env:extra_index_url:https://pypi.python.org/simple} {opts} {packages}
[testenv:sanity]
changedir=./ansible_collections/ctera/ctera
passenv =
HOME
deps=
ansible
cterasdk
whitelist_externals=
ansible-test
commands =
ansible-test sanity --python 3.8 --requirements {posargs}
[testenv:unittests]
deps=
ansible
cterasdk
nose2==0.6.5
cov-core==1.15.0
munch
whitelist_externals=
mkdir
commands =
mkdir -p reports
nose2 --config=tests/ut/nose2.cfg --verbose --project-directory . {posargs}
coverage html --fail-under=90 -d reports/coverage
[testenv:coveralls]
passenv = TRAVIS TRAVIS_*
deps=
coveralls
commands=
coveralls
[testenv:ansible-playbook]
setenv =
ANSIBLE_COLLECTIONS_PATHS=.
deps =
ansible
cterasdk
whitelist_externals=
ansible-playbook
commands =
ansible-playbook -vvv {posargs}