-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
83 lines (82 loc) · 2.39 KB
/
Copy pathazure-pipelines.yml
File metadata and controls
83 lines (82 loc) · 2.39 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: $(Date:yyyyMMdd)$(Rev:rr)
stages:
- stage: build
displayName: 'Build'
jobs:
- template: azure-pipelines-jobs-linux-containerless.yml
parameters:
name: ubuntu2004
displayName: 'Ubuntu 20.04'
vmImage: 'ubuntu-20.04'
- template: azure-pipelines-jobs-linux-containerless.yml
parameters:
name: ubuntu2204
displayName: 'Ubuntu 22.04'
vmImage: 'ubuntu-22.04'
- template: azure-pipelines-jobs-macos.yml
parameters:
name: macos
displayName: 'macOS'
sdk: 'macosx'
- template: azure-pipelines-jobs-macos.yml
parameters:
name: ios
displayName: 'iOS'
sdk: 'iphoneos'
- template: azure-pipelines-jobs-macos.yml
parameters:
name: iossimulator
displayName: 'iOS Simulator'
sdk: 'iphonesimulator'
- template: azure-pipelines-jobs-windows.yml
parameters:
name: windows
displayName: 'Windows'
- template: azure-pipelines-jobs-windows.yml
parameters:
name: androidx64
displayName: 'Android x64'
platform: 'x64'
premakeOpts: '--os=android'
- template: azure-pipelines-jobs-windows.yml
parameters:
name: androidarm64
displayName: 'Android ARM64'
platform: 'arm64'
premakeOpts: '--os=android'
- template: azure-pipelines-jobs-emscripten.yml
parameters:
name: emscripten
displayName: 'Emscripten 3.1.18'
emsdkVersion: '3.1.18'
- template: azure-pipelines-jobs-emscripten.yml
parameters:
name: emscriptenlatest
displayName: 'Emscripten Latest'
emsdkVersion: 'latest'
- stage: test
displayName: 'Test'
jobs:
- job: coverage
displayName: Coverage
pool:
vmImage: 'ubuntu-latest'
steps:
- checkout: self
submodules: recursive
- script: sudo apt update && sudo apt install -y gcovr
displayName: 'Install dependencies'
- script: bin/premake-bin/premake5 gmake2 --coverage
displayName: 'Run Premake'
- script: make -j4 config=debug_x64
displayName: 'Build Projects'
- script: Output/bin/Debug_x64/udTest
displayName: 'Run Tests'
- script: gcovr -r . -e 3rdParty -e udTest -s -p --xml -o coverage.xml
displayName: 'Generate Coverage'
- task: PublishCodeCoverageResults@1
displayName: 'Publish Coverage Results'
condition: always()
inputs:
codeCoverageTool: 'cobertura'
summaryFileLocation: 'coverage.xml'