forked from seladb/PcapPlusPlus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
39 lines (33 loc) · 1.44 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
version: 1.0.{build}
platform:
- Win32
environment:
matrix:
- compiler: mingw32
MINGW_COMPILER: mingw32
- compiler: mingw-w64
MINGW_COMPILER: mingw-w64
install:
- git clone https://github.com/mfontanini/winpcap-installer.git
- cd winpcap-installer
- winpcap-boundary-meter-4.1.3.exe /S
- cd ..
- appveyor DownloadFile http://www.winpcap.org/install/bin/WpdPack_4_1_2.zip
- 7z x .\WpdPack_4_1_2.zip -oc:\
- if "%MINGW_COMPILER%"=="mingw32" set PATH=%PATH%;C:\MinGW\bin
- if "%MINGW_COMPILER%"=="mingw-w64" set PATH=%PATH%;C:\mingw-w64\i686-5.3.0-posix-dwarf-rt_v4-rev0\mingw32\bin
- appveyor DownloadFile http://ftp.ntua.gr/mirror/mingw/MinGW/Base/pthreads-w32/pthreads-w32-2.9.1/pthreads-w32-2.9.1-1-mingw32-dev.tar.lzma
- 7z e pthreads-w32-2.9.1-1-mingw32-dev.tar.lzma -oC:\pthreads && 7z x C:\pthreads\pthreads-w32-2.9.1-1-mingw32-dev.tar -oC:\pthreads
- xcopy /Y C:\pthreads\mingw32\include\* C:\MinGW\include
- xcopy /Y C:\pthreads\mingw32\lib\* C:\MinGW\lib
before_build:
- cd C:\projects\PcapPlusPlus
- if "%MINGW_COMPILER%"=="mingw32" configure-windows.bat mingw32 -m C:\MinGW -w C:\WpdPack
- if "%MINGW_COMPILER%"=="mingw-w64" configure-windows.bat mingw-w64 -m C:\mingw-w64\i686-5.3.0-posix-dwarf-rt_v4-rev0\mingw32 -w C:\WpdPack -s C:\msys64
build_script:
- mingw32-make all
test_script:
- cd C:\projects\PcapPlusPlus\Packet++Test
- Bin\Packet++Test.exe
- cd ..\Pcap++Test
- Bin\Pcap++Test.exe -n