1environment: 2 # This key is encrypted using secdev's appveyor private key, 3 # dissected only on master builds (not PRs) and is used during 4 # npcap OEM installation 5 npcap_oem_key: 6 secure: d120KTZBsVnzZ+pFPLPEOTOkyJxTVRjhbDJn9L+RYnM= 7 # Python versions that will be tested 8 # Note: it defines variables that can be used later 9 matrix: 10 - PYTHON: "C:\\Python312-x64" 11 PYTHON_VERSION: "3.12.x" 12 PYTHON_ARCH: "64" 13 TOXENV: "py312-windows" 14 UT_FLAGS: "-K scanner" 15 - PYTHON: "C:\\Python312-x64" 16 PYTHON_VERSION: "3.12.x" 17 PYTHON_ARCH: "64" 18 TOXENV: "py312-windows" 19 UT_FLAGS: "-k scanner" 20 21# There is no build phase for Scapy 22build: off 23 24install: 25 # Log some debug info 26 - ver 27 # Install the npcap, windump and wireshark suites 28 - ps: .\.config\appveyor\InstallNpcap.ps1 29 - ps: .\.config\appveyor\InstallWindumpNpcap.ps1 30 # Installs Wireshark 3.0 (and its dependencies) 31 # https://github.com/mkevenaar/chocolatey-packages/issues/16 32 - choco install -n KB3033929 KB2919355 kb2999226 33 - choco install -y wireshark 34 # Install Python modules 35 # https://github.com/tox-dev/tox/issues/791 36 - "%PYTHON%\\python -m pip install virtualenv --upgrade" 37 - "%PYTHON%\\python -m pip install tox coverage" 38 39test_script: 40 # Set environment variables 41 - set PYTHONPATH=%APPVEYOR_BUILD_FOLDER% 42 - set PATH=%APPVEYOR_BUILD_FOLDER%;C:\Program Files\Wireshark\;C:\Program Files\Windump\;%PATH% 43 # - set TOX_PARALLEL_NO_SPINNER=1 44 45 # Main unit tests 46 - "%PYTHON%\\python -m tox -- %UT_FLAGS%" 47 48after_test: 49 # Run codecov 50 - ps: $ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri https://uploader.codecov.io/latest/windows/codecov.exe -Outfile codecov.exe 51 - codecov.exe 52