forked from fosslight/fosslight_scanner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
41 lines (34 loc) · 967 Bytes
/
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
# Copyright (c) 2021 LG Electronics
# SPDX-License-Identifier: Apache-2.0
[tox]
envlist = test_run
skipdist = true
[testenv]
install_command = pip install {opts} {packages}
whitelist_externals = cat
cp
rm
ls
setenv =
PYTHONPATH=.
[flake8]
max-line-length = 130
exclude = .tox/*
[pytest]
filterwarnings = ignore::DeprecationWarning
norecursedirs = test_result_*
[testenv:test_run]
commands =
rm -rf test_result_local_path
rm -rf test_result_wget
fosslight -o test_result_local_path/test.xlsx -p tests -r
fosslight dependency -o test_result_wget -w "https://github.com/LGE-OSS/example.git"
ls test_result_wget
[testenv:release]
deps =
-r{toxinidir}/requirements-dev.txt
commands =
fosslight -h
fosslight all -o test_result_local_path/test.xlsx -p tests -r
fosslight source -o test_result_wget -w "https://github.com/LGE-OSS/example.git"
pytest -v --flake8