-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtox.ini
54 lines (47 loc) · 1.08 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
48
49
50
51
52
53
54
[tox]
minversion = 3.3.0
isolated_build = True
skip_missing_interpreters = True
skipsdist = True
envlist =
unit_py3,
check
[testenv]
allowlist_externals = {toxinidir}/pip.sh
install_command = {toxinidir}/pip.sh {opts} {packages}
whitelist_externals =
/bin/bash
basepython =
check: python3
unit_py3: python3
envdir =
check: {toxworkdir}/3
unit_py3: {toxworkdir}/3
passenv =
*
usedevelop = True
deps =
-r.virtualenv.dev-requirements.txt
# Unit Test run with basepython set to 3.x
[testenv:unit_py3]
skip_install = True
usedevelop = True
setenv =
PYTHONPATH={toxinidir}/test
PYTHONUNBUFFERED=yes
WITH_COVERAGE=yes
passenv =
*
deps = {[testenv]deps}
commands =
python3 setup.py develop
py.test --no-cov-on-fail --cov=mash \
--cov-report=term-missing --cov-fail-under=90 --cov-config .coveragerc
# Source code quality/integrity check
[testenv:check]
deps = {[testenv]deps}
skip_install = True
usedevelop = True
commands =
flake8 --statistics -j auto --count {toxinidir}/mash
flake8 --statistics -j auto --count {toxinidir}/test/unit