-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
59 lines (56 loc) · 1.66 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
53
54
55
56
57
58
59
trigger:
- main
jobs:
- job: Linux
pool:
vmImage: 'ubuntu-20.04'
steps:
- script: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends python3-venv zlib1g-dev libkrb5-dev libtinfo5
./build.sh
env:
CXX: g++-9
workingDirectory: build
- task: PublishTestResults@2
inputs:
searchFolder: '$(System.DefaultWorkingDirectory)/build/results'
testResultsFiles: 'bootstrap_results.xml'
testRunTitle: 'Native Tests (Linux)'
- publish: $(System.DefaultWorkingDirectory)/build/packages
artifact: Packages (Linux)
- job: Windows
pool:
vmImage: 'windows-2019'
steps:
- script: ./build.cmd
workingDirectory: build
- task: PublishTestResults@2
inputs:
mergeTestResults: true
searchFolder: '$(System.DefaultWorkingDirectory)/build/results'
testResultsFormat: 'VSTest'
testResultsFiles: '*.trx'
testRunTitle: 'Managed Tests'
- task: PublishTestResults@2
inputs:
searchFolder: '$(System.DefaultWorkingDirectory)/build/results'
testResultsFiles: 'bootstrap_results.xml'
testRunTitle: 'Native Tests (Windows)'
- publish: $(System.DefaultWorkingDirectory)/build/packages
artifact: Packages (Windows)
- job: CodeCoverage
pool:
vmImage: 'ubuntu-20.04'
steps:
- script: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends python3-venv
./build.sh --target=GenerateCoverage
env:
CXX: g++-9
workingDirectory: build
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: 'Cobertura'
summaryFileLocation: '$(System.DefaultWorkingDirectory)/build/results/merged/Cobertura.xml'