forked from nunit/nunit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
48 lines (41 loc) · 1.46 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
trigger:
branches:
include: [ '*' ]
exclude: [ 'refs/tags/*' ]
jobs:
- job: Windows
pool:
vmImage: vs2017-win2016
steps:
- powershell: .\build.ps1 --target=Test --test-run-name=Windows
displayName: Build, test, and publish results
- powershell: .\build.ps1 --target=Package --artifact-dir='$(Build.ArtifactStagingDirectory)'
displayName: Package
- task: PublishBuildArtifacts@1
displayName: Save package artifacts
inputs:
PathtoPublish: $(Build.ArtifactStagingDirectory)
ArtifactName: Package
- job: Linux
pool:
vmImage: ubuntu-16.04
steps:
- bash: |
wget -q https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-sdk-2.2
dotnet tool install --global Cake.Tool
export DOTNET_ROOT="$(dirname "$(readlink "$(command -v dotnet)")")"
~/.dotnet/tools/dotnet-cake --target=Test --test-run-name=Linux --configuration=Release
displayName: Build, test, and publish results
- job: macOS
pool:
vmImage: macOS-10.13
steps:
- bash: |
dotnet tool install --global Cake.Tool
export DOTNET_ROOT="$(dirname "$(readlink "$(command -v dotnet)")")"
~/.dotnet/tools/dotnet-cake --target=Test --test-run-name=macOS --configuration=Release
displayName: Build, test, and publish results