Skip to content

Commit 3ab3277

Browse files
committed
Modify tox.ini to separate release test from normal test
1 parent e2a8112 commit 3ab3277

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

tox.ini

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# Copyright (c) 2021 LG Electronics
2-
# SPDX-License-Identifier: Apache-2.0
31
[tox]
42
envlist = test_run
53
skipdist = true
64

75
[testenv]
86
install_command = pip install {opts} {packages}
97
basepython= python3.6
8+
setenv =
9+
PYTHONPATH=.
1010

1111
[flake8]
1212
max-line-length = 145
@@ -16,12 +16,15 @@ exclude = .tox/*
1616
filterwarnings = ignore::DeprecationWarning
1717

1818
[testenv:test_run]
19+
commands =
20+
fosslight_reuse -h
21+
fosslight_reuse -p src/ -r "test_result/reuse_result.xml"
22+
fosslight_reuse -p src/ -f "fosslight_reuse/wrapper_reuse_lint.py" -r "test_result2/reuse_result.xml"
23+
24+
[testenv:release]
1925
deps =
2026
-r{toxinidir}/requirements-dev.txt
2127

22-
setenv =
23-
PYTHONPATH=.
24-
2528
commands =
2629
fosslight_reuse -h
2730
fosslight_reuse -p src/ -r "test_result/reuse_result.xml"

0 commit comments

Comments
 (0)