forked from Euclideon/udcore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines-jobs-linux.yml
40 lines (39 loc) · 1.07 KB
/
azure-pipelines-jobs-linux.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: ''
container: ''
jobs:
- job: ${{ parameters.name }}
displayName: ${{ parameters.displayName }}
pool:
vmImage: 'ubuntu-latest'
container:
image: ${{ parameters.container }}
variables:
platform: x64
strategy:
matrix:
Debug:
configuration: Debug
Release:
configuration: Release
DebugClang:
configuration: DebugClang
ReleaseClang:
configuration: ReleaseClang
steps:
- checkout: self
submodules: recursive
- script: bin/premake-bin/premake5 gmake2
displayName: 'Run Premake'
- script: make -j4 config=$(echo ${CONFIGURATION}_${PLATFORM} | tr [:upper:] [:lower:])
displayName: 'Build Projects'
- script: Output/bin/$(configuration)_$(platform)/udTest --gtest_output=xml
displayName: 'Run Tests'
- task: PublishTestResults@2
displayName: 'Publish Test Results'
condition: always()
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: 'test_detail.xml'
testRunTitle: ${{ parameters.name }}_$(platform)_$(configuration)