-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
71 lines (55 loc) · 1.22 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
[base]
# Let's configure base dependencies
deps =
flake8
coverage
nose
[tox]
# Here is the list of our environments
envlist = {py36,py37}-nmap{6.40,7.91}
[testenv:py37-nmap6.40]
setenv =
NMAP_XML_VERSION = 6.40
[testenv:py37-nmap7.01]
setenv =
NMAP_XML_VERSION = 7.01
[testenv:py37-nmap7.70]
setenv =
NMAP_XML_VERSION = 7.70
[testenv:py37-nmap7.91]
setenv =
NMAP_XML_VERSION = 7.91
[testenv:py36-nmap6.40]
setenv =
NMAP_XML_VERSION = 6.40
[testenv:py36-nmap7.01]
setenv =
NMAP_XML_VERSION = 7.01
[testenv:py36-nmap7.70]
setenv =
NMAP_XML_VERSION = 7.70
[testenv:py36-nmap7.91]
setenv =
NMAP_XML_VERSION = 7.91
[testenv]
# Install current package before testing
passenv = NMAP_XML_VERSION
usedevelop = True
basepython =
py36: python3.6
py37: python3.7
# Configure the actual testing command
whitelist_externals = /usr/bin/make
/usr/bin/ln
/usr/bin/rm
/usr/bin/echo
/usr/bin/grep
commands =
echo scanme_output-{env:NMAP_XML_VERSION}.xml
rm -f scanme_output.xml
ln -s scanme_output-{env:NMAP_XML_VERSION}.xml scanme_output.xml
nosetests --with-coverage nmap -v # make test
deps = {[base]deps}
nmap-6.40: auie
nmap-7.01: Xauie
nmap-7.70: Yauie