epan/dissectors/pidl/drsuapi/drsuapi.cnf supplementalCredentials without packages
[wireshark-sm.git] / appveyor.yml
blob127ebead0886852d44d10ea452823470914c04b7
1 version: build{build}
2 image: Visual Studio 2019
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 16 2019
10       QT5_BASE_DIR: C:\Qt\5.15\msvc2019_64
11       APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
13 cache:
14   - '%WIRESHARK_BASE_DIR%'
15   - C:\ProgramData\chocolatey\bin
16   - C:\ProgramData\chocolatey\lib
18 install:
19   - choco install winflexbison
20   # Java is already installed, prevent an expensive upgrade (102 seconds).
21   - choco install --ignore-dependencies asciidoctorj docbook-bundle xsltproc
22   # Py2 fails the test_tshark_unicode_display_filter test, so use Py3.
23   - set PATH=C:\Python37-x64;C:\Python37-x64\Scripts;%PATH%
24   - pip install pytest pytest-xdist
25   - ps: New-Item -ItemType Directory -Force -Path $Env:WIRESHARK_BASE_DIR
26   - ps: |   # For pkcs11 tests.
27       Invoke-WebRequest -Uri https://github.com/disig/SoftHSM2-for-Windows/releases/download/v2.5.0/SoftHSM2-2.5.0.msi -OutFile $Env:WIRESHARK_BASE_DIR\SoftHSM2-2.5.0.msi
28       & msiexec /qn /i $Env:WIRESHARK_BASE_DIR\SoftHSM2-2.5.0.msi
29   # https://help.appveyor.com/discussions/questions/18777-how-to-use-vcvars64bat-from-powershell
30   - ps: cmd.exe /c "call `"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat`" && set > %temp%\vcvars.txt"
31   - ps: Get-Content "$env:temp\vcvars.txt" | Foreach-Object { if ($_ -match "^(.*?)=(.*)$") { Set-Content "env:\$($matches[1])" $matches[2] } }
33 # Note: the NSIS installer lacks debug dlls for Debug builds.
34 configuration: RelWithDebInfo
36 build:
37   parallel: true
38   project: build\Wireshark.sln
40 before_build:
41   - python3 tools/make-version.py --set-release --untagged-version-extra=-{vcsinfo}-AppVeyor --tagged-version-extra=-AppVeyor
42   - mkdir build
43   - cd build
44   - cmake -E time cmake -DCMAKE_SYSTEM_VERSION=10.0.20348.0 -G "%CMAKE_GENERATOR%" ..
46 after_build:
47   - msbuild /m wireshark_nsis_prep.vcxproj
48   - msbuild /m wireshark_nsis.vcxproj
49   # Publish installers only for development branches to avoid exceeding the
50   # artifact storage limit of 50 GB.
51   - ps: |
52       if ($Env:APPVEYOR_REPO_BRANCH -notlike "master*") {
53         Get-Item packaging\nsis\Wireshark-*.exe | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
54       }
56 before_test:
57   - msbuild /m test-programs.vcxproj
59 test_script:
60   - pytest
62 on_finish:
63   - ps: |
64       $Tshark = "run\\$Env:CONFIGURATION\\tshark.exe"
65       if (Test-Path $Tshark) { & $Tshark --version }
67 deploy: off