forked from microsoft/QuantumKatas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
86 lines (73 loc) · 2.13 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
name: $(Build.Major).$(Build.Minor).$(BuildId)
trigger: none
pr:
- main
- feature/*
- release/*
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'
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 19'
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 20'
displayName: "Validating notebooks"
workingDirectory: $(System.DefaultWorkingDirectory)/scripts