test: convert capture tests to use fixtures, fix tests without dumpcap
[metze/wireshark/wip.git] / appveyor.yml
1 version: build{build}
2 image: Visual Studio 2015
3
4 environment:
5   WIRESHARK_BASE_DIR: C:\wireshark-libs
6   matrix:
7     # Note: if VS2017 win32 is added, just use Qt msvc2015 (binary compatible).
8     - PLATFORM: x64
9       CMAKE_GENERATOR: Visual Studio 15 2017 Win64
10       QT5_BASE_DIR: C:\Qt\5.11\msvc2017_64
11       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
12     # x86 does not work here, cmake expects win32/Win32 (case insensitive?)
13     - PLATFORM: win32
14       CMAKE_GENERATOR: Visual Studio 14 2015
15       QT5_BASE_DIR: C:\Qt\5.11\msvc2015
16     - PLATFORM: x64
17       CMAKE_GENERATOR: Visual Studio 14 2015 Win64
18       QT5_BASE_DIR: C:\Qt\5.11\msvc2015_64
19
20 cache:
21   - '%WIRESHARK_BASE_DIR%'
22   - C:\ProgramData\chocolatey\bin
23   - C:\ProgramData\chocolatey\lib
24
25 install:
26   - choco install winflexbison
27   # Java is already installed, prevent an expensive upgrade (102 seconds).
28   - choco install --ignore-dependencies asciidoctorj docbook-bundle xsltproc
29   # Py2 fails the test_tshark_unicode_display_filter test, so use Py3.
30   - set PATH=C:\Python37-x64;C:\Python37-x64\Scripts;%PATH%
31   - pip install pytest pytest-xdist
32
33 # Note: the NSIS installer lacks debug dlls for Debug builds.
34 configuration: RelWithDebInfo
35
36 build:
37   parallel: true
38   project: build\Wireshark.sln
39
40 before_build:
41   # Write ASCII (not UTF-16). Cannot use cmd due to repeated '%' unescapes.
42   - ps: echo "pkg_format=-%#-AppVeyor" | Out-File -Encoding ASCII version.conf
43   - perl make-version.pl --set-release
44   - mkdir build
45   - cd build
46   - cmake -E time cmake -G "%CMAKE_GENERATOR%" ..
47
48 after_build:
49   - msbuild /m nsis_package_prep.vcxproj
50   - msbuild /m nsis_package.vcxproj
51   # Relocate the installer such that the artifact URL looks nicer.
52   - move packaging\nsis\*.exe ..
53
54 before_test:
55   - msbuild /m test-programs.vcxproj
56
57 test_script:
58   - set WS_BIN_PATH=%CD%\run\%CONFIGURATION%
59   - pytest -nauto -ra ..\test
60
61 # AppVeyor prevents to store artifacts exceeding 50 GB. Commenting out
62 # their upload for now. They can be re-enabled on your own repo from the
63 # configuration page:
64 # https://ci.appveyor.com/project/<username>/wireshark/settings/artifacts
65 # artifacts:
66 #  - path: Wireshark-*.exe
67
68 deploy: off