-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
96 lines (88 loc) · 2.9 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
85
86
87
88
89
90
91
92
93
94
95
96
variables:
build.increment: $[counter('buildnumber', 10000)]
build.version: 2.5.0-ci-$(build.increment)
build.configuration: Release
build.arguments: /t:Package /p:Configuration=$(build.configuration) /p:BuildVersion=$(build.version) /p:Branch=$(Build.SourceBranch)
trigger:
- master
- develop
- refs/tags/*
jobs:
- job: Mac
pool:
vmImage: 'macOS-10.13'
steps:
- script: sudo $AGENT_HOMEDIRECTORY/scripts/select-xamarin-sdk.sh 5_18_1
displayName: 'Select Xamarin SDK version'
- task: msbuild@1
displayName: Build and Package
inputs:
solution: build/Build.proj
msbuildArguments: $(build.arguments)
- task: msbuild@1
displayName: Build MonoDevelop Addin
inputs:
solution: build/Build.proj
msbuildArguments: /t:BuildAddins
- task: CopyFiles@2
displayName: Copy nupkg
inputs:
contents: artifacts/nuget/$(build.configuration)/Eto.Platform.XamMac*.nupkg
targetFolder: $(Build.ArtifactStagingDirectory)
- task: CopyFiles@2
displayName: Copy MonoDevelop Addin
inputs:
contents: artifacts/addin/$(build.configuration)/net461/Eto.Addin.MonoDevelop*.mpack
targetFolder: $(Build.ArtifactStagingDirectory)
- task: PublishBuildArtifacts@1
displayName: Publish XamMac nupkg
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)/artifacts/nuget/$(build.configuration)
artifactName: nuget
publishLocation: container
- task: PublishBuildArtifacts@1
displayName: Publish MonoDevelop Addin
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)/artifacts/addin/$(build.configuration)/net461
artifactName: addins
publishLocation: container
- job: Windows
pool:
vmImage: 'VS2017-Win2016'
steps:
- script: cinst gtksharp -y
displayName: Install GTK#
- task: msbuild@1
displayName: Build and Package
inputs:
solution: build/Build.proj
msbuildArguments: $(build.arguments)
- task: msbuild@1
displayName: Build Visual Studio Addin
inputs:
solution: build/Build.proj
msbuildArguments: /t:BuildAddins
- task: PublishBuildArtifacts@1
displayName: Publish nupkg
inputs:
pathtoPublish: artifacts/nuget/$(build.configuration)
artifactName: nuget
publishLocation: container
- task: PublishBuildArtifacts@1
displayName: Publish tests
inputs:
pathtoPublish: artifacts/test/$(build.configuration)
artifactName: test
publishLocation: container
- task: PublishBuildArtifacts@1
displayName: Publish samples
inputs:
pathtoPublish: artifacts/samples/$(build.configuration)
artifactName: samples
publishLocation: container
- task: PublishBuildArtifacts@1
displayName: Publish Visual Studio Addin
inputs:
pathtoPublish: artifacts/addin/$(build.configuration)/VisualStudio/Eto.Addin.VisualStudio.vsix
artifactName: addins
publishLocation: container