-
Notifications
You must be signed in to change notification settings - Fork 5
/
tox.ini
48 lines (42 loc) · 1.07 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
# Copyright (c) 2021 LG Electronics
# SPDX-License-Identifier: Apache-2.0
[tox]
envlist = test_run
skipdist = true
[testenv]
install_command = pip install {opts} {packages}
allowlist_externals =
bash
ls
rm
cat
{toxinidir}/dist/cli
setenv =
PYTHONPATH=.
[flake8]
max-line-length = 150
exclude = .tox/*
ignore = E722, W503
[pytest]
filterwarnings = ignore::DeprecationWarning
[testenv:test_run]
deps =
-r{toxinidir}/requirements-dev.txt
changedir = tests
commands =
pytest -n 4 initial_tox_test.py::test_test_run_environment
[testenv:format_test]
deps =
-r{toxinidir}/requirements-dev.txt
changedir = tests
commands =
pytest -n 4 file_format_test.py::test_output_file_format
[testenv:release]
deps =
-r{toxinidir}/requirements-dev.txt
commands =
pytest -n 4 tests/initial_tox_test.py::test_release_environment
pytest -v --flake8
pyinstaller --onefile cli.py -n cli --additional-hooks-dir=hooks --hidden-import=pkg_resources.extern
{toxinidir}/dist/cli -p tests -o test_result_cli
; py.test --cov-report term-missing --cov={envsitepackagesdir}/fosslight_binary