-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
49 lines (39 loc) · 809 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
[tox]
envlist = test_run
skipdist = true
[main]
android_src_path = "android/src_12"
android_build_log = "android.log"
[flake8]
max-line-length = 145
exclude =
.git,
__pycache__,
doc,
resources,
.tox,
script,
site-packages
max-complexity = 10
ignore = C901
[pytest]
filterwarnings = ignore::DeprecationWarning
markers =
run: Test for local environment
release: Test for CI environment
[testenv]
install_command = pip install {opts} {packages}
setenv =
ANDROID_SRC_PATH = {[main]android_src_path}
ANDROID_BUILD_LOG = {[main]android_build_log}
[testenv:test_run]
changedir = test
setenv =
PYTHONPATH=.
commands =
pytest -m run
[testenv:release]
deps =
-r{toxinidir}/requirements-dev.txt
commands =
pytest -v --flake8 --ignore=script -m release