-
Notifications
You must be signed in to change notification settings - Fork 6
/
tox.ini
67 lines (60 loc) · 2.67 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
# Copyright (c) 2021 LG Electronics
# SPDX-License-Identifier: GPL-3.0-only
[tox]
envlist = {ubuntu, windows}
skipdist = true
[testenv]
install_command = pip install {opts} {packages}
allowlist_externals = cat
cp
rm
cmd
del
copy
setenv =
PYTHONPATH=.
[flake8]
max-line-length = 145
exclude = .tox/*
[pytest]
filterwarnings = ignore::DeprecationWarning
[testenv:windows]
commands =
fosslight_prechecker lint -p src -o "test_result\prechecker_result.yaml"
fosslight_prechecker lint -p src -f yaml -o "test_result2\prechecker_result.yaml"
fosslight_prechecker lint -p tests -e convert add\test_no_license.py -o "test_result3\prechecker_result.yaml"
fosslight_prechecker convert -p "tests\convert"
cmd /c del /s/q tests\add_result
cmd /c del /s/q tests\add\LICENSES
cmd /c del /s/q tests\add\LICENSE
cmd /c copy tests\add tests\add_result
fosslight_prechecker add -p "tests\add_result" -c "2019-2021 LG Electronics Inc." -l "GPL-3.0-only"
fosslight_prechecker add -p "tests\add" -l "EPL-1.0"
fosslight_prechecker add -p "tests\add" -u "https://github.com/fosslight/fosslight_prechecker/"
[testenv:ubuntu]
commands =
fosslight_prechecker lint -p src/ -o "test_result/prechecker_result.yaml"
fosslight_prechecker lint -p src/ -f yaml -o "test_result2/prechecker_result.yaml"
fosslight_prechecker lint -p tests/ -e convert add/test_no_license.py -o "test_result3/prechecker_result.yaml"
fosslight_prechecker convert -p "tests/convert"
rm -rf tests/add_result
rm -rf tests/add/LICENSES
rm -rf tests/add/LICENSE
cp -r tests/add tests/add_result
fosslight_prechecker add -p "tests/add_result" -c "2019-2021 LG Electronics Inc." -l "GPL-3.0-only"
fosslight_prechecker add -p "tests/add" -l "EPL-1.0"
fosslight_prechecker add -p "tests/add" -u "https://github.com/fosslight/fosslight_prechecker/"
[testenv:release]
deps =
-r{toxinidir}/requirements-dev.txt
commands =
fosslight_prechecker -h
fosslight_prechecker lint -p src/ -o "test_result/prechecker_result.yaml"
fosslight_prechecker lint -p src/ -f yaml -o "test_result2/prechecker_result.yaml"
fosslight_prechecker lint -p tests -e convert add/test_no_license.py -o "test_result3/prechecker_result.yaml"
fosslight_prechecker convert -p tests/convert
cp -r tests/add tests/add_result
fosslight_prechecker add -p tests/add_result -c "2019-2021 LG Electronics Inc." -l "GPL-3.0-only"
fosslight_prechecker add -p tests/add -l EPL-1.0
fosslight_prechecker add -p tests/add -u "https://github.com/fosslight/fosslight_prechecker/"
pytest -v --flake8