forked from fosslight/fosslight_source_scanner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
55 lines (42 loc) · 1.12 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
# 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 =
cat
rm
ls
setenv =
PYTHONPATH=.
[flake8]
max-line-length = 130
exclude = .tox/*
[pytest]
filterwarnings = ignore::DeprecationWarning
[testenv:test_run]
deps =
-r{toxinidir}/requirements-dev.txt
commands =
rm -rf test_scan
fosslight_source -p tests/test_files -j -m -o test_scan
fosslight_source -p tests -e test_files/test cli_test.py -j -m -o test_scan2
[testenv:release]
deps =
-r{toxinidir}/requirements-dev.txt
commands =
fosslight_source -h
fosslight_source -p tests/test_files -o test_scan/scan_result.csv
cat test_scan/scan_result.csv
fosslight_source -p tests -e test_files/test cli_test.py -j -m -o test_scan2/scan_exclude_result.csv
cat test_scan2/scan_exclude_result.csv
fosslight_source -p tests/test_files -m -j -o test_scan3/
ls test_scan3/
python tests/cli_test.py
pytest -v --flake8
pip install fosslight_scanner
pip install fosslight_android
fosslight -v
fosslight_android -v