File: .appveyor.yml

package info (click to toggle)
scapy 2.6.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 13,956 kB
  • sloc: python: 163,618; sh: 90; makefile: 11
file content (51 lines) | stat: -rw-r--r-- 1,739 bytes parent folder | download | duplicates (2)
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
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:\\Python312-x64"
      PYTHON_VERSION: "3.12.x"
      PYTHON_ARCH: "64"
      TOXENV: "py312-windows"
      UT_FLAGS: "-K scanner"
    - PYTHON: "C:\\Python312-x64"
      PYTHON_VERSION: "3.12.x"
      PYTHON_ARCH: "64"
      TOXENV: "py312-windows"
      UT_FLAGS: "-k scanner"

# There is no build phase for Scapy
build: off

install:
  # Log some debug info
  - ver
  # Install the npcap, windump and wireshark suites
  - ps: .\.config\appveyor\InstallNpcap.ps1
  - ps: .\.config\appveyor\InstallWindumpNpcap.ps1
  # Installs Wireshark 3.0 (and its dependencies)
  # https://github.com/mkevenaar/chocolatey-packages/issues/16
  - choco install -n KB3033929 KB2919355 kb2999226
  - choco install -y wireshark
  # Install Python modules
  # https://github.com/tox-dev/tox/issues/791
  - "%PYTHON%\\python -m pip install virtualenv --upgrade"
  - "%PYTHON%\\python -m pip install tox coverage"

test_script:
  # Set environment variables
  - set PYTHONPATH=%APPVEYOR_BUILD_FOLDER%
  - set PATH=%APPVEYOR_BUILD_FOLDER%;C:\Program Files\Wireshark\;C:\Program Files\Windump\;%PATH%
  # - set TOX_PARALLEL_NO_SPINNER=1
  
  # Main unit tests
  - "%PYTHON%\\python -m tox -- %UT_FLAGS%"

after_test:
  # Run codecov
  - ps: $ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri https://uploader.codecov.io/latest/windows/codecov.exe -Outfile codecov.exe
  - codecov.exe