aboutsummaryrefslogtreecommitdiff
path: root/scripts/azure-pipelines/windows/run-tests.yml
blob: 6ea80ac2c9ece34bd88a03fc1b22384bed31a867 (plain)
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
# Copyright (c) Microsoft Corporation.
# SPDX-License-Identifier: MIT
#
# Builds and runs vcpkg-test.exe for PRs and CIs.

jobs:
- job: windows_tests
  pool:
    name: ${{ parameters.poolName }}
  steps:
  - task: CmdLine@2
    displayName: "Build and Test vcpkg"
    inputs:
      script: |
        :: TRANSITION, get these tools on the VMs next time we roll them
        call .\bootstrap-vcpkg.bat
        .\vcpkg.exe fetch cmake
        .\vcpkg.exe fetch ninja
        set PATH=downloads\tools\cmake-3.17.2-windows\cmake-3.17.2-win32-x86\bin;downloads\tools\ninja-1.10.0-windows;%PATH%
        call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=x86 -host_arch=x86
        rmdir /s /q build.x86.debug > nul 2> nul
        cmake.exe -G Ninja -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=ON -DVCPKG_DEVELOPMENT_WARNINGS=ON -DVCPKG_WARNINGS_AS_ERRORS=ON -DVCPKG_BUILD_FUZZING=ON -B build.x86.debug -S toolsrc
        ninja.exe -C build.x86.debug
        build.x86.debug\vcpkg-test.exe
      failOnStderr: true