forked from seladb/PcapPlusPlus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
74 lines (63 loc) · 2.48 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
65
66
67
68
69
70
71
72
73
74
version: 1.0.{build}
environment:
NPCAP_USERNAME:
secure: iVuVl18E7ZfsuRjz0YKJKQ==
NPCAP_PASSWORD:
secure: 8sWBrDudyutFv+4Eq6teJA==
PYTHON: "C:\\Python38-x64"
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
compiler: mingw32
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
compiler: vs2015
platform: x86
config: Debug
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
compiler: vs2017
platform: x86
config: Debug
init:
- set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
install:
- cmd: ci\install_npcap.bat
- cmd: python -m pip install --upgrade pip
- cmd: ci\install_pthreads.bat
- cmd: ci\install_tcpreplay.bat
before_build:
- cmd: configure-windows-visual-studio.bat -v %compiler% -w C:\Npcap-sdk -p C:\pthreads
build_script:
- ps: msbuild mk\$env:compiler\PcapPlusPlus.sln /p:Configuration=$env:config /p:Platform=$env:platform
- ps: msbuild mk\$env:compiler\PcapPlusPlus-Examples.sln /p:Configuration=$env:config /p:Platform=$env:platform
- ps: msbuild mk\$env:compiler\Tutorials.sln /p:Configuration=$env:config /p:Platform=$env:platform
test_script:
- cmd: python -m pip install -r ci\run_tests\requirements.txt
- cmd: python ci\run_tests\run_tests_windows.py -s TestRawSockets
- cmd: ci\find_ip.bat
- cmd: cd Tests\ExamplesTest
- cmd: python -m pip install -r requirements.txt
- cmd: python -m pytest --interface %NetworkIP%
for:
-
matrix:
only:
- compiler: mingw32
install:
- cmd: ci\install_winpcap.bat
- cmd: python -m pip install --upgrade pip
- cmd: git clone https://github.com/seladb/PcapPlusPlus-Deploy
- cmd: cd PcapPlusPlus-Deploy\Packages
- cmd: set PATH=%PATH%;C:\MinGW\bin&& 7z e pthreads-GC-w32-2.10-mingw32-pre-20160821-1-dev.tar.xz -oC:\pthreads && 7z x C:\pthreads\pthreads-GC-w32-2.10-mingw32-pre-20160821-1-dev.tar -oC:\pthreads && xcopy /Y C:\pthreads\include\* C:\MinGW\include && xcopy /Y C:\pthreads\lib\* C:\MinGW\lib
- cmd: cd ..\..\
- cmd: python ci\patch_mingw.py
- cmd: ci\install_tcpreplay.bat
before_build:
- cmd: configure-windows-mingw.bat mingw32 -m C:\MinGW -w C:\WpdPack
build_script:
- cmd: mingw32-make all
test_script:
- cmd: python -m pip install -r ci\run_tests\requirements.txt
- cmd: python ci\run_tests\run_tests_windows.py -s TestRawSockets
- cmd: ci\find_ip.bat
- cmd: cd Tests\ExamplesTest
- cmd: python -m pip install -r requirements.txt
- cmd: python -m pytest --interface %NetworkIP%