2016-12-14 16:26:38 +00:00
|
|
|
environment:
|
2018-04-10 16:38:51 +00:00
|
|
|
# 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:
|
2024-07-25 22:55:14 +00:00
|
|
|
- PYTHON: "C:\\Python312-x64"
|
|
|
|
PYTHON_VERSION: "3.12.x"
|
2018-01-09 17:00:56 +00:00
|
|
|
PYTHON_ARCH: "64"
|
2024-07-25 22:55:14 +00:00
|
|
|
TOXENV: "py312-windows"
|
2022-10-06 18:43:44 +00:00
|
|
|
UT_FLAGS: "-K scanner"
|
2024-07-25 22:55:14 +00:00
|
|
|
- PYTHON: "C:\\Python312-x64"
|
|
|
|
PYTHON_VERSION: "3.12.x"
|
2019-02-05 22:31:55 +00:00
|
|
|
PYTHON_ARCH: "64"
|
2024-07-25 22:55:14 +00:00
|
|
|
TOXENV: "py312-windows"
|
2022-10-06 18:43:44 +00:00
|
|
|
UT_FLAGS: "-k scanner"
|
2016-12-14 16:26:38 +00:00
|
|
|
|
|
|
|
# There is no build phase for Scapy
|
|
|
|
build: off
|
|
|
|
|
|
|
|
install:
|
2024-07-25 22:55:14 +00:00
|
|
|
# Log some debug info
|
|
|
|
- ver
|
2017-02-23 19:22:26 +00:00
|
|
|
# Install the npcap, windump and wireshark suites
|
2019-07-22 15:24:48 +00:00
|
|
|
- ps: .\.config\appveyor\InstallNpcap.ps1
|
|
|
|
- ps: .\.config\appveyor\InstallWindumpNpcap.ps1
|
2019-03-29 23:33:07 +00:00
|
|
|
# Installs Wireshark 3.0 (and its dependencies)
|
|
|
|
# https://github.com/mkevenaar/chocolatey-packages/issues/16
|
|
|
|
- choco install -n KB3033929 KB2919355 kb2999226
|
2017-05-31 19:08:59 +00:00
|
|
|
- choco install -y wireshark
|
2016-12-14 16:26:38 +00:00
|
|
|
# Install Python modules
|
2019-05-13 22:28:45 +00:00
|
|
|
# https://github.com/tox-dev/tox/issues/791
|
|
|
|
- "%PYTHON%\\python -m pip install virtualenv --upgrade"
|
2021-07-21 12:27:09 +00:00
|
|
|
- "%PYTHON%\\python -m pip install tox coverage"
|
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%
|
2024-07-25 22:55:14 +00:00
|
|
|
# - set TOX_PARALLEL_NO_SPINNER=1
|
2016-12-14 16:26:38 +00:00
|
|
|
|
|
|
|
# Main unit tests
|
2022-05-02 08:51:13 +00:00
|
|
|
- "%PYTHON%\\python -m tox -- %UT_FLAGS%"
|
2017-01-05 09:27:57 +00:00
|
|
|
|
|
|
|
after_test:
|
2019-02-05 22:38:56 +00:00
|
|
|
# Run codecov
|
2023-03-09 20:58:23 +00:00
|
|
|
- ps: $ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri https://uploader.codecov.io/latest/windows/codecov.exe -Outfile codecov.exe
|
|
|
|
- codecov.exe
|