Skip to content

Commit faf873c

Browse files
committed
Modify tox.ini to separate release test from normal test
1 parent c6065ca commit faf873c

File tree

1 file changed

+22
-12
lines changed

1 file changed

+22
-12
lines changed

tox.ini

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ skipdist = true
88
install_command = pip install {opts} {packages}
99
basepython= python3.6
1010
whitelist_externals = cat
11+
setenv =
12+
PYTHONPATH=.
1113

1214
[flake8]
1315
max-line-length = 130
@@ -18,18 +20,26 @@ filterwarnings = ignore::DeprecationWarning
1820

1921
[testenv:test_run]
2022
deps =
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

2636
commands =
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

Comments
 (0)