forked from dotnet/samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
74 lines (57 loc) · 1.98 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- master
pr: none
jobs:
- job:
condition: eq(1,0)
displayName: 'Run CI on Windows'
pool:
vmImage: '$(VMIMAGE)'
steps:
- checkout: self
path: dotnet-samples
persistCredentials: true
displayName: 'Check out dotnet/samples repo'
- script: |
git clone https://blah:$(toolstoken)@dev.azure.com/mseng/TechnicalContent/_git/dotnet-docs-tools ../dotnet-docs-tools
displayName: "Clone tools repo"
- script: |
echo Init dotnet
dotnet help &> /dev/null
echo Find projects in dotnet-samples folder
cd ../dotnet-docs-tools/LocateProjects/LocateProjects/
dotnet run -- $(Agent.BuildDirectory)/dotnet-samples/core
displayName: 'Compile tool'
- job:
condition: eq(1,1)
displayName: 'Run CI on Windows'
pool:
vmImage: 'windows-latest'
steps:
- checkout: self
path: dotnet-samples
persistCredentials: true
displayName: 'Check out dotnet/samples repo'
- script: |
git clone https://blah:$(toolstoken)@dev.azure.com/mseng/TechnicalContent/_git/dotnet-docs-tools ../dotnet-docs-tools
displayName: "Clone tools repo"
- script: |
echo Init dotnet
dotnet help > NUL
# echo Find projects in dotnet-samples folder
# cd ../dotnet-docs-tools/LocateProjects/LocateProjects/
# dotnet run -- $(Agent.BuildDirectory)/dotnet-samples/core
displayName: 'Init dotnet'
- powershell: "../dotnet-docs-tools/Get-MSBuildResults.ps1 | ConvertTo-Json | Out-File '$(Build.ArtifactStagingDirectory)/output.json'"
env: {
scantooldir: "../dotnet-docs-tools/LocateProjects/LocateProjects",
samplesrootdir: "$(Agent.BuildDirectory)/dotnet-samples/"
}
displayName: "Run build script"
- publish: $(Build.ArtifactStagingDirectory)/output.json
artifact: BuildResults
condition: always()