@@ -6,6 +6,7 @@ skipdist = true
6
6
toxworkdir = {toxinidir}/tests/
7
7
8
8
[testenv]
9
+ wheel = true
9
10
install_command = pip install {opts} {packages}
10
11
basepython = python3.6
11
12
whitelist_externals = npm
@@ -21,40 +22,23 @@ exclude = .tox/*
21
22
ignore = E722
22
23
23
24
[testenv:test_run]
24
- commands =
25
- # Test for Pypi
26
- fosslight_dependency -p tests/test_pypi -o tests/result/pip
27
- # Test for NPM (without optional command)
28
- fosslight_dependency -p tests/test_npm1 -o tests/result/npm1
29
- # Test for NPM (with optional command)
30
- fosslight_dependency -p tests/test_npm2 -o tests/result/npm2 -m npm
31
- # Test for Maven (without optional command)
32
- fosslight_dependency -p tests/test_maven1/lombok.maven -o tests/result/maven1
33
- # Test for Maven (with optional command)
34
- fosslight_dependency -p tests/test_maven2 -o tests/result/maven2 -m maven
35
- # Test for Gradle
36
- fosslight_dependency -p tests/test_gradle/jib -o tests/result/gradle -m gradle
37
- # Test for Pub
38
- fosslight_dependency -p tests/test_pub/iamport_flutter -o tests/result/pub
39
-
40
- [testenv:release]
41
- deps =
42
- -r{toxinidir}/requirements-dev.txt
43
-
44
25
commands =
45
26
# Print Help Message
46
27
fosslight_dependency -h
47
28
# Print Current Version
48
29
fosslight_dependency -v
49
30
# Test for PEP8
50
31
pytest -v --flake8
32
+
33
+ [testenv:run_ubuntu]
34
+ deps =
35
+ -r{toxinidir}/requirements-dev.txt
36
+ commands =
51
37
# Test for Pypi
52
38
fosslight_dependency -p tests/test_pypi -o tests/result/pip
53
39
# Test for NPM (without optional command)
54
- npm install --prefix {toxworkdir}/test_npm1 license-checker
55
40
fosslight_dependency -p tests/test_npm1 -o tests/result/npm1
56
41
# Test for NPM (with optional command)
57
- npm install --prefix {toxworkdir}/test_npm2 license-checker
58
42
fosslight_dependency -p tests/test_npm2 -o tests/result/npm2 -m npm
59
43
# Test for Maven (without optional command)
60
44
fosslight_dependency -p tests/test_maven1/lombok.maven -o tests/result/maven1
@@ -64,6 +48,3 @@ commands =
64
48
fosslight_dependency -p tests/test_gradle/jib -o tests/result/gradle -m gradle
65
49
# Test for Pub
66
50
fosslight_dependency -p tests/test_pub/iamport_flutter -o tests/result/pub
67
- # Test for Excutable file
68
- pyinstaller --onefile cli.py --additional-hooks-dir =hooks --add-binary =src/fosslight_dependency/third_party/nomos/nomossa:third_party/nomos
69
- {toxinidir}/dist/cli -o test_result_cli
0 commit comments