-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
38 lines (34 loc) · 977 Bytes
/
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
jobs:
- job: Native
strategy:
matrix:
Linux:
imageName: "ubuntu-16.04"
macOS:
imageName: "macos-10.14"
Windows:
imageName: "windows-2019"
pool:
vmImage: $(imageName)
steps:
- script: |
echo "All 3 Azure platforms will run this"
displayName: 'Run on Linux/macOS/Windows'
# Linux only
- bash: |
echo "This is only run on Linux"
echo "Dependencies could be installed with apt-get"
condition: eq( variables['Agent.OS'], 'Linux' )
displayName: 'Run on Linux'
# macOS only
- bash: |
echo "This is only run on macOS"
echo "Dependencies could be installed with homebrew"
condition: eq( variables['Agent.OS'], 'Darwin' )
displayName: 'Run on macOS'
# Windows only
- bash: |
echo "This is only run on Windows"
echo "Dependencies could be installed with choco"
displayName: 'Run on Windows'
condition: eq( variables['Agent.OS'], 'Windows_NT' )