forked from fosslight/fosslight_prechecker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
49 lines (44 loc) · 1.63 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
# Copyright (c) 2021 LG Electronics
# SPDX-License-Identifier: GPL-3.0-only
[tox]
envlist = test_run
skipdist = true
[testenv]
install_command = pip install {opts} {packages}
basepython= python3.6
whitelist_externals = cat
cp
rm
setenv =
PYTHONPATH=.
[flake8]
max-line-length = 145
exclude = .tox/*
[pytest]
filterwarnings = ignore::DeprecationWarning
[testenv:test_run]
commands =
fosslight_reuse lint -p src/ -o "test_result/reuse_result.xml"
fosslight_reuse lint -p src/ -f "fosslight_reuse/_fosslight_reuse.py" -o "test_result2/reuse_result.xml"
fosslight_reuse convert -p tests/convert
fosslight_reuse convert -f tests/convert/OSS-Report-Sample_1_BOM.xlsx -o test_convert/output
cat test_convert/output.yaml
rm -rf tests/add_result
rm -rf tests/add/LICENSES
rm -rf tests/add/LICENSE
cp -r tests/add tests/add_result
fosslight_reuse add -p tests/add_result -c "2019-2021 LG Electronics Inc." -l "GPL-3.0-only"
fosslight_reuse add -p tests/add -l EPL-1.0
[testenv:release]
deps =
-r{toxinidir}/requirements-dev.txt
commands =
fosslight_reuse -h
fosslight_reuse lint -p src/ -o "test_result/reuse_result.xml"
fosslight_reuse lint -p src/ -f "fosslight_reuse/_fosslight_reuse.py" -o "test_result2/reuse_result.xml"
fosslight_reuse convert -p tests/convert
fosslight_reuse convert -f tests/convert/OSS-Report-Sample_1_BOM.xlsx -o test_convert/output
cp -r tests/add tests/add_result
fosslight_reuse add -p tests/add_result -c "2019-2021 LG Electronics Inc." -l "GPL-3.0-only"
fosslight_reuse add -p tests/add -l EPL-1.0
pytest -v --flake8