forked from Yubico/yubikey-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
31 lines (28 loc) · 765 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
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py
[testenv]
# Pure software tests
# Invoke as `tox`, `tox -e py27` etc.
deps =
mock; python_version < '3'
commands_pre =
python --version
commands =
python -m unittest discover {posargs}
[testenv:integration-test]
# Tests with real YubiKeys
# Invoke as `tox -e integration-test`
basepython = python
deps =
{[testenv]deps}
commands_pre =
{[testenv]commands_pre}
commands =
python setup.py test
passenv =
DESTRUCTIVE_TEST_YUBIKEY_SERIALS
DESTRUCTIVE_TEST_DO_NOT_PROMPT