forked from Euclideon/udcore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines-jobs-windows.yml
40 lines (39 loc) · 1.19 KB
/
azure-pipelines-jobs-windows.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
parameters:
name: ''
displayName: ''
platform: 'x64'
premakeOpts: ''
jobs:
- job: ${{ parameters.name }}
displayName: ${{ parameters.displayName }}
pool:
vmImage: 'windows-latest'
strategy:
matrix:
Debug:
configuration: Debug
Release:
configuration: Release
steps:
- checkout: self
submodules: recursive
- script: bin\premake-bin\premake5.exe vs2019 ${{ parameters.premakeOpts }}
displayName: 'Run Premake'
- task: MSBuild@1
displayName: 'Build Projects'
inputs:
solution: udCore.sln
platform: ${{ parameters.platform }}
configuration: $(configuration)
maximumCpuCount: true
msbuildArguments: '/v:m'
- script: Output\bin\$(configuration)_${{ parameters.platform }}\udTest.exe --gtest_output=xml
displayName: 'Run Tests'
condition: and(succeeded(), eq('${{ parameters.name }}', 'windows'))
- task: PublishTestResults@2
displayName: 'Publish Test Results'
condition: and(always(), eq('${{ parameters.name }}', 'windows'))
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: 'test_detail.xml'
testRunTitle: ${{ parameters.name }}_${{ parameters.platform }}_$(configuration)