-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathazure-pipelines.yml
53 lines (45 loc) · 1.25 KB
/
azure-pipelines.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
42
43
44
45
46
47
48
49
50
51
52
# Copyright (c) Team CharLS.
# SPDX-License-Identifier: BSD-3-Clause
variables:
solution: '*.sln'
jobs:
- job: 'cppWindows'
pool:
vmImage: windows-latest
displayName: 'Build on Windows'
strategy:
matrix:
x86-Debug:
buildPlatform: 'Win32'
buildConfiguration: 'Debug'
x86-Release:
buildPlatform: 'Win32'
buildConfiguration: 'Release'
x64-Debug:
buildPlatform: 'x64'
buildConfiguration: 'Debug'
x64-Release:
buildPlatform: 'x64'
buildConfiguration: 'Release'
steps:
- task: NuGetToolInstaller@1
- task: NuGetCommand@2
inputs:
command: 'restore'
includeNuGetOrg: true
restoreSolution: '*.sln'
- task: VSBuild@1
inputs:
solution: '$(solution)'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
maximumCpuCount: true
msbuildArgs: -p:JPEGLS_WIC_CODEC_PROFILE=true -p:JPEGLS_WIC_CODEC_ALL_WARNINGS=true
- task: VSTest@2
inputs:
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
runInParallel: true
resultsFolder: '$(build.ArtifactStagingDirectory)/Test/Results'
codeCoverageEnabled: true
runSettingsFile: 'test\CodeCoverage.runsettings'