-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
76 lines (64 loc) · 2.34 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
[tox]
skipdist = true
envlist = unit-py2.7, unit-py3.7, unit-maya2017, pylint, black-check
[testenv]
deps = .[test]
command = codecov
[testenv:unit-py2.7]
description = Run unit tests against python 2.7
commands = pytest --cov=maya_mock --cov-branch --cov-report=term-missing --cov-report=xml {posargs} tests/unit_tests
[testenv:unit-py3.7]
description = Run unit tests against python 3.7
basepython = python3
commands = pytest --cov=maya_mock --cov-branch --cov-report=term-missing --cov-report=xml {posargs} tests/unit_tests
[testenv:unit-maya2017]
description = Run test against maya-2017 (python 2.7.11)
setenv =
PYTHONPATH = {envsitepackagesdir}
MAYA_MOCK_RUN_TEST_WITH_MAYA = 1
commands = /usr/autodesk/maya2017/bin/mayapy -m pytest --cov=maya_mock --cov-branch --cov-report=term-missing --cov-report=xml {posargs} tests/unit_tests
[testenv:unit-maya2020]
description = Run test against maya-2020 (python 2.7.11)
setenv =
PYTHONPATH = {envsitepackagesdir}
MAYA_MOCK_RUN_TEST_WITH_MAYA = 1
commands = /usr/autodesk/maya2020/bin/mayapy -m pytest --cov=maya_mock --cov-branch --cov-report=term-missing --cov-report=xml {posargs} tests/unit_tests
[testenv:fuzz-maya2017]
description = Run fuzz tests against maya-2017
setenv = PYTHONPATH = {envsitepackagesdir}
commands = pytest tests/unit_tests tests/fuzz_tests
[testenv:fuzz-maya2020]
description = Run fuzz tests against maya-2020
setenv = PYTHONPATH = {envsitepackagesdir}
commands = pytest tests/unit_tests tests/fuzz_tests
[testenv:generate-schema-maya2017]
descript = "Generate a schema from maya-2017"
setenv = PYTHONPATH = {envsitepackagesdir}
commands = /usr/autodesk/maya2017/bin/mayapy -m maya_mock
[testenv:generate-schema-maya2020]
descript = "Generate a schema from maya-2020"
setenv = PYTHONPATH = {envsitepackagesdir}
commands = /usr/autodesk/maya2020/bin/mayapy -m maya_mock
[testenv:pylint]
description = Run pylint on source and tests
basepython = python3
deps=
pylint
.[test]
commands = pylint src tests --output-format=colorized
[testenv:black-check]
description = Ensure source and tests is normalized with black
deps=black
basepython=python3
setenv =
LC_ALL=C.UTF-8
LANG=C.UTF-8
commands = black --check src tests
[testenv:black-reformat]
description = Reformat all codebase with black
deps=black
basepython=python3
setenv =
LC_ALL=C.UTF-8
LANG=C.UTF-8
commands = black src tests