forked from seladb/PcapPlusPlus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
41 lines (35 loc) · 1.46 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
version: 1.0.{build}
environment:
NPCAP_USERNAME:
secure: iVuVl18E7ZfsuRjz0YKJKQ==
NPCAP_PASSWORD:
secure: 8sWBrDudyutFv+4Eq6teJA==
PYTHON: "C:\\Python38-x64"
BUILD_DIR: "build"
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
compiler: "Visual Studio 15 2017"
platform: x64
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_tcpreplay.bat
- cmd: choco install OpenCppCoverage -y
- cmd: set PATH="C:\\Program Files\\OpenCppCoverage";%PATH%
before_build:
- ps: cmake -A "$env:platform" -G "$env:compiler" -DPCAP_ROOT=C:\Npcap-sdk -S . -B "$env:BUILD_DIR"
build_script:
- ps: cmake --build "$env:BUILD_DIR" --config "$env:config" -j
test_script:
- cmd: python -m pip install -r ci\run_tests\requirements.txt
- cmd: python ci\run_tests\run_tests_windows.py -s TestRawSockets --coverage
- cmd: ci\find_ip.bat
- cmd: cd Tests\ExamplesTest
- cmd: python -m pip install -r requirements.txt
- cmd: python -m pytest --interface %NetworkIP% --root-path=..\..\%BUILD_DIR%\examples_bin\%config%
- cmd: cd ..\..\
- ps: Invoke-WebRequest -Uri https://uploader.codecov.io/latest/windows/codecov.exe -Outfile codecov.exe
- cmd: .\codecov.exe -v -f ./Tests/Pcap++Test/Pcap++Coverage.xml -f ./Tests/Packet++Test/Packet++Coverage.xml -F vs2017 -F unittest -B %APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH% || ver>nul