scapy/.appveyor.yml

64 lines
1.7 KiB
YAML
Raw Normal View History

2016-12-14 16:26:38 +00:00
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=
2016-12-14 16:26:38 +00:00
# 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"
2018-05-23 15:23:18 +00:00
TOXENV: "py27-windows"
2019-02-05 22:31:55 +00:00
WINPCAP: "false"
- PYTHON: "C:\\Python37-x64"
PYTHON_VERSION: "3.7.x"
2018-01-09 17:00:56 +00:00
PYTHON_ARCH: "64"
2019-02-05 22:31:55 +00:00
TOXENV: "py37-windows"
WINPCAP: "false"
- PYTHON: "C:\\Python37-x64"
PYTHON_VERSION: "3.7.x"
PYTHON_ARCH: "64"
TOXENV: "py37-windows"
WINPCAP: "true"
2016-12-14 16:26:38 +00:00
# There is no build phase for Scapy
build: off
install:
2017-02-23 19:22:26 +00:00
# Install the npcap, windump and wireshark suites
2017-05-31 19:08:59 +00:00
- ps: .\.appveyor\InstallNpcap.ps1
2017-02-23 19:22:26 +00:00
- ps: .\.appveyor\InstallWindump.ps1
2017-05-31 19:08:59 +00:00
- choco install -y wireshark
2016-12-14 16:26:38 +00:00
# Install Python modules
2018-05-23 15:23:18 +00:00
- "%PYTHON%\\python -m pip install tox"
- set PATH=%PYTHON%\\Scripts\\;%PATH%
2016-12-14 16:26:38 +00:00
2019-02-05 22:31:55 +00:00
# Compatibility run with Winpcap
# XXX Remove me when wireshark stops using it as default
for:
-
matrix:
only:
- WINPCAP: "true"
install:
# Install the winnpcap, windump and wireshark suites
- choco install -y winpcap
- choco install -y windump
- choco install -y wireshark
# Install Python modules
- "%PYTHON%\\python -m pip install tox"
2016-12-14 16:26:38 +00:00
test_script:
# Set environment variables
- set PYTHONPATH=%APPVEYOR_BUILD_FOLDER%
2018-05-23 15:23:18 +00:00
- set PATH=%APPVEYOR_BUILD_FOLDER%;C:\Program Files\Wireshark\;C:\Program Files\Windump\;%PATH%
2016-12-14 16:26:38 +00:00
# Main unit tests
2018-05-23 15:23:18 +00:00
- "%PYTHON%\\python -m tox"
2017-01-05 09:27:57 +00:00
after_test:
# Install & run codecov
2018-05-23 15:23:18 +00:00
- tox -e codecov