forked from microsoft/iqsharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ci.yml
82 lines (72 loc) · 1.95 KB
/
ci.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
name: $(Build.Major).$(Build.Minor).$(DayOfMonth)$(rev:rr)
trigger: none
pr:
- main
- feature/*
- features/*
- release/*
schedules:
- cron: "0 9 * * Sat"
displayName: 'Build for Component Governance'
branches:
include:
- main
always: true
variables:
Build.Major: 0
Build.Minor: 18
Drops.Dir: $(Build.ArtifactStagingDirectory)/drops
IQSharp.Hosting.Env: 'build-agent-iqsharp'
agent.preferPowerShellOnContainers: false
jobs:
- job: "iqsharp"
pool:
vmImage: 'ubuntu-latest'
steps:
- template: steps.yml
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
displayName: 'Component Detection'
inputs:
failOnAlert: true
- job: "test_selenium"
pool:
vmImage: 'windows-2019'
steps:
- template: steps-selenium.yml
condition: ne(variables['Skip.Tests'], 'true')
- job: "pack_selfcontained"
dependsOn: "iqsharp"
pool:
vmImage: 'ubuntu-latest'
steps:
- template: steps-selfcontained.yml
condition: and(succeeded(), ne(variables['Enable.Conda'], 'false'))
- job: "pack_conda_macos"
dependsOn: "pack_selfcontained"
condition: and(succeeded(), ne(variables['Enable.Conda'], 'false'))
pool:
vmImage: 'macOS-latest'
variables:
CondaPath: '/usr/local/bin/'
steps:
- template: steps-conda.yml
- job: "pack_conda_linux"
dependsOn: "pack_selfcontained"
condition: and(succeeded(), ne(variables['Enable.Conda'], 'false'))
pool:
vmImage: 'ubuntu-latest'
container: 'mcr.microsoft.com/quantum/linux-selfcontained:latest'
variables:
CondaPath: '/miniconda/bin/'
steps:
- template: steps-conda.yml
- job: "pack_conda_windows"
dependsOn: "pack_selfcontained"
condition: and(succeeded(), ne(variables['Enable.Conda'], 'false'))
pool:
vmImage: 'windows-latest'
container: 'mcr.microsoft.com/quantum/windows-selfcontained:latest'
variables:
CondaPath: 'C:\Miniconda3\Scripts'
steps:
- template: steps-conda.yml