@@ -8,6 +8,8 @@ skipdist = true
88install_command = pip install {opts} {packages}
99basepython = python3.6
1010whitelist_externals = cat
11+ setenv =
12+ PYTHONPATH =.
1113
1214[flake8]
1315max-line-length = 130
@@ -18,18 +20,26 @@ filterwarnings = ignore::DeprecationWarning
1820
1921[testenv:test_run]
2022deps =
21- -r{toxinidir}/requirements-dev.txt
23+ -r{toxinidir}/requirements.txt
24+ commands =
25+ fosslight_source -p tests/test_files -j -o test_scan/scan_result
26+ cat test_scan/scan_result.csv
27+ fosslight_convert -p tests/json_result/scan_has_error.json -o test_convert/convert_result2
28+ fosslight_convert -p test_scan/scan_result.json -o test_convert/convert_result
29+ cat test_convert/convert_result.csv
30+ python tests/cli_test.py
2231
23- setenv =
24- PYTHONPATH =.
32+ [testenv:release]
33+ deps =
34+ -r{toxinidir}/requirements-dev.txt
2535
2636commands =
27- fosslight_source -h
28- fosslight_convert -h
29- fosslight_source -p tests/test_files -j -o test_scan/scan_result
30- cat test_scan/scan_result.csv
31- fosslight_convert -p tests/json_result/scan_has_error.json -o test_convert/convert_result2
32- fosslight_convert -p test_scan/scan_result.json -o test_convert/convert_result
33- cat test_convert/convert_result.csv
34- python tests/cli_test.py
35- pytest -v --flake8
37+ fosslight_source -h
38+ fosslight_convert -h
39+ fosslight_source -p tests/test_files -j -o test_scan/scan_result
40+ cat test_scan/scan_result.csv
41+ fosslight_convert -p tests/json_result/scan_has_error.json -o test_convert/convert_result2
42+ fosslight_convert -p test_scan/scan_result.json -o test_convert/convert_result
43+ cat test_convert/convert_result.csv
44+ python tests/cli_test.py
45+ pytest -v --flake8
0 commit comments