forked from Azure/azure-relay-bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
54 lines (45 loc) · 1.37 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
# Azure Pipelines Build
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
trigger:
- master
variables:
BuildVersion.MajorMinor: 0.3
BuildVersion.Revision: $[counter(variables['Version.MajorMinor'], 0)]
BuildVersion: $(BuildVersion.MajorMinor).$(BuildVersion.Revision)
jobs:
- job: WindowsBuild
workspace:
clean: all
pool:
vmImage: 'windows-latest'
steps:
- task: DotNetCoreCLI@2
inputs:
command: 'restore'
feedsToUse: 'select'
- task: MSBuild@1
inputs:
solution: '**/*.sln'
msbuildArguments: '/t:clean,package /p:WindowsOnly=true /p:Configuration=Release /p:VersionPrefix=$(BuildVersion) /p:VersionSuffix=rel'
- task: DotNetCoreCLI@2
inputs:
command: 'test'
arguments: '/p:WindowsOnly=true'
- publish: $(System.DefaultWorkingDirectory)\artifacts\build\net462
artifact: WindowsBuild
- job: LinuxBuild
workspace:
clean: all
pool:
vmImage: 'ubuntu-latest'
steps:
- task: ShellScript@1
inputs:
scriptPath: './package.sh'
arguments: '/p:VersionSuffix=rel'
- task: DotNetCoreCLI@2
inputs:
command: 'test'
arguments: '/p:RuntimeIdentifier=ubuntu-x64 /p:Configuration=Debug'
- publish: $(System.DefaultWorkingDirectory)/artifacts/build/netcoreapp3.0
artifact: XBuild