forked from secdev/scapy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
64 lines (58 loc) · 1.76 KB
/
.appveyor.yml
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
environment:
# This key is encrypted using secdev's appveyor private key,
# dissected only on master builds (not PRs) and is used during
# npcap OEM installation
npcap_oem_key:
secure: d120KTZBsVnzZ+pFPLPEOTOkyJxTVRjhbDJn9L+RYnM=
# Python versions that will be tested
# Note: it defines variables that can be used later
matrix:
- PYTHON: "C:\\Python27-x64"
PYTHON_VERSION: "2.7.x"
PYTHON_ARCH: "64"
TOXENV: "py27-windows"
WINPCAP: "false"
UT_FLAGS: ""
- PYTHON: "C:\\Python37-x64"
PYTHON_VERSION: "3.7.x"
PYTHON_ARCH: "64"
TOXENV: "py37-windows"
WINPCAP: "false"
UT_FLAGS: ""
- PYTHON: "C:\\Python37-x64"
PYTHON_VERSION: "3.7.x"
PYTHON_ARCH: "64"
TOXENV: "py37-windows"
WINPCAP: "true"
UT_FLAGS: "-K tcpdump"
# There is no build phase for Scapy
build: off
install:
# Install the npcap, windump and wireshark suites
- ps: .\.appveyor\InstallNpcap.ps1
- ps: .\.appveyor\InstallWindumpNpcap.ps1
- choco install -y wireshark
# Install Python modules
- "%PYTHON%\\python -m pip install tox"
# Compatibility run with Winpcap
# XXX Remove me when wireshark stops using it as default
for:
-
matrix:
only:
- WINPCAP: "true"
install:
# Install the winpcap and wireshark suites
- choco install -y winpcap
- choco install -y wireshark
# Install Python modules
- "%PYTHON%\\python -m pip install tox"
test_script:
# Set environment variables
- set PYTHONPATH=%APPVEYOR_BUILD_FOLDER%
- set PATH=%APPVEYOR_BUILD_FOLDER%;C:\Program Files\Wireshark\;C:\Program Files\Windump\;%PATH%
# Main unit tests
- "%PYTHON%\\python -m tox -- %UT_FLAGS%"
after_test:
# Run codecov
- "%PYTHON%\\python -m tox -e codecov"