1+ # Repo: codefoco/AzureDevopsTemplates
2+ resources :
3+ repositories :
4+ - repository : templates
5+ type : github
6+ name : codefoco/AzureDevopsTemplates
7+ endpoint : codefoco
8+
19pool :
2- name : Hosted macOS
10+ vmImage : ' macOS-10.14 '
311 demands : msbuild
412
513steps :
14+ - checkout : self
615
7- # Print the current version of Xcode
8- - task : CmdLine@2
9- displayName : ' Show Xcode version'
10- inputs :
11- script : ' /usr/bin/xcodebuild -version'
12-
13- # Azure DevOps hosted pool is still using an old version of Xamarin.iOS,
14-
15- - task : CmdLine@2
16- displayName : ' Provisioning Xamarin.iOS'
17- inputs :
18- script : ' cd ~;
19- curl -O https://download.visualstudio.microsoft.com/download/pr/d11a42ff-dd11-4005-b5a8-799856a96aad/2893a2da0df8a2e2d45ea17e2be2ccce/xamarin.ios-13.4.0.2.pkg;
20- sudo installer -pkg ~/xamarin.ios-13.4.0.2.pkg -target /'
21-
22- # Print the current version of Xamarin.iOS
23- - task : CmdLine@2
24- inputs :
25- script : ' /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mtouch --version'
26-
16+ - template : common-dotnet.yml@templates
17+ - template : common-macos.yml@templates
2718
2819- task : NuGetCommand@2
29- displayName : ' NuGet restore'
30-
31- - script : ' brew update'
32- displayName : ' Brew Update'
33-
34- - script : ' brew install gitversion --ignore-dependencies'
35- displayName : ' Install GitVersion'
20+ displayName : ' NuGet restore LuaCodeView.iOS.sln'
21+ inputs :
22+ restoreSolution : LuaCodeView.iOS.sln
3623
3724- task : PowerShell@2
3825 displayName : ' PreBuild Script'
@@ -73,39 +60,4 @@ steps:
7360 filePath : ./devops/Publish.ps1
7461 arguments : Codefoco.LuaCodeView.iOS
7562
76- - task : SendTelegramNotification@0
77- condition : in(variables['Agent.JobStatus'], 'SucceededWithIssues')
78- inputs :
79- botToken : ' $(botToken)'
80- chats : ' $(chatId)'
81- taskStatus : false
82- message : |
83- ⚠️ <b>Warning!</b> <a href="$(Build.Repository.Uri)">$(Build.DefinitionName)</a> (<code>$(Build.SourceBranchName)</code>)
84- <pre>$(Build.SourceVersion)</pre>
85- $(Build.SourceVersionMessage) by $(Build.QueuedBy)
86-
87- - task : SendTelegramNotification@0
88- condition : in(variables['Agent.JobStatus'], 'Failed')
89- inputs :
90- botToken : ' $(botToken)'
91- chats : ' $(chatId)'
92- taskStatus : false
93- buildQueuedBy : false
94- message : |
95- ❌ <b>Fail!</b> <a href="$(Build.Repository.Uri)">$(Build.DefinitionName)</a> (<code>$(Build.SourceBranchName)</code>)
96- <pre>$(Build.SourceVersion)</pre>
97- $(Build.SourceVersionMessage) by $(Build.QueuedBy)
98-
99- - task : SendTelegramNotification@0
100- condition : in(variables['Agent.JobStatus'], 'Succeeded')
101- inputs :
102- botToken : ' $(botToken)'
103- chats : ' $(chatId)'
104- taskStatus : false
105- buildQueuedBy : false
106- message : |
107- ✅ <b>Success!</b> <a href="$(Build.Repository.Uri)">$(Build.DefinitionName)</a> (<code>$(Build.SourceBranchName)</code>)
108- <pre>$(Build.SourceVersion)</pre>
109- $(Build.SourceVersionMessage) by $(Build.QueuedBy)
110-
111- #
63+ - template : send-telegram.yml@templates
0 commit comments