This repository has been archived by the owner on Aug 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
azure-pipelines.yml
96 lines (82 loc) · 2.3 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: $(Build.Major).$(Build.Minor).$(BuildId)
trigger: none
pr:
- main
- feature/*
- release/*
schedules:
- cron: "0 9 * * Sat"
displayName: 'Build for Component Governance'
branches:
include:
- main
always: true
variables:
Build.Major: 1
Build.Minor: 0
Build.Patch: $(Build.BuildId)
Build.Configuration: 'Release'
Drops.Dir: $(Build.ArtifactStagingDirectory)/drops
IQSharp.Hosting.Env: 'build-agent-katas'
jobs:
- job: binaries
displayName: 'Build Binary Packages'
pool:
vmImage: 'ubuntu-latest'
steps:
- template: scripts/steps-init.yml
- template: scripts/steps-binaries.yml
- job: validate_projects
displayName: 'Validate C# Projects'
strategy:
matrix:
linux:
imageName: 'ubuntu-latest'
mac:
imageName: 'macOS-latest'
windows:
imageName: 'windows-latest'
pool:
vmImage: $(imageName)
steps:
- template: scripts/steps-init.yml
- powershell: ./validate-unicode.ps1
displayName: "Validating Unicode characters"
workingDirectory: $(System.DefaultWorkingDirectory)/scripts
- powershell: ./validate-projects.ps1
displayName: "Validating C# projects"
workingDirectory: $(System.DefaultWorkingDirectory)/scripts
- job: validate_notebooks_part_1
displayName: 'Validate Notebooks (part 1)'
strategy:
matrix:
linux:
imageName: 'ubuntu-latest'
mac:
imageName: 'macOS-latest'
windows:
imageName: 'windows-latest'
pool:
vmImage: $(imageName)
steps:
- template: scripts/steps-init.yml
- powershell: './validate-notebooks.ps1 -startindex 0 -endindex 27'
displayName: "Validating notebooks"
workingDirectory: $(System.DefaultWorkingDirectory)/scripts
- job: validate_notebooks_part_2
displayName: 'Validate Notebooks (part 2)'
strategy:
matrix:
linux:
imageName: 'ubuntu-latest'
mac:
imageName: 'macOS-latest'
windows:
imageName: 'windows-latest'
pool:
vmImage: $(imageName)
steps:
- template: scripts/steps-init.yml
- powershell: './validate-notebooks.ps1 -startindex 28'
displayName: "Validating notebooks"
workingDirectory: $(System.DefaultWorkingDirectory)/scripts