|
8 | 8 |
|
9 | 9 | # Azure DevOps hosted pool is still using an old version of Xamarin.iOS, |
10 | 10 | # so we will use the previous major version of Xcode |
11 | | - |
12 | 11 | - task: CmdLine@2 |
13 | 12 | inputs: |
14 | 13 | script: 'sudo rm -rf /Applications/Xcode.app/; |
15 | 14 | sudo /bin/mv /Applications/Xcode_9.4.1.app/ /Applications/Xcode.app/' |
16 | 15 |
|
| 16 | +# Print the current version of Xamarin.iOS |
17 | 17 | - task: CmdLine@2 |
18 | 18 | inputs: |
19 | | - script: '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -version' |
20 | | - |
21 | | -- task: CmdLine@2 |
22 | | - inputs: |
23 | | - script: '/usr/bin/xcode-select -p' |
24 | | - |
25 | | -# - task: CmdLine@2 |
26 | | -# inputs: |
27 | | -# script: 'sudo /usr/bin/xcode-select -s /Applications/Xcode_9.4.1.app/Contents/Developer' |
28 | | - |
29 | | -# # Print the current version of Xamarin.iOS |
30 | | -# - task: CmdLine@2 |
31 | | -# inputs: |
32 | | -# script: '/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mtouch --version' |
| 19 | + script: '/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mtouch --version' |
33 | 20 |
|
34 | | -# - task: NuGetCommand@2 |
35 | | -# displayName: 'NuGet restore' |
| 21 | +- task: NuGetCommand@2 |
| 22 | + displayName: 'NuGet restore' |
36 | 23 |
|
37 | | -# - script: 'brew update' |
38 | | -# displayName: 'Brew Update' |
| 24 | +- script: 'brew update' |
| 25 | + displayName: 'Brew Update' |
39 | 26 |
|
40 | | -# - script: 'brew install gitversion --ignore-dependencies' |
41 | | -# displayName: 'Install GitVersion' |
| 27 | +- script: 'brew install gitversion --ignore-dependencies' |
| 28 | + displayName: 'Install GitVersion' |
42 | 29 |
|
43 | | -# - task: PowerShell@2 |
44 | | -# displayName: 'PreBuild Script' |
45 | | -# inputs: |
46 | | -# targetType: filePath |
47 | | -# filePath: ./devops/PreBuild.ps1 |
48 | | -# arguments: 'Codefoco.CYRTextView CYRTextView.nuspec' |
| 30 | +- task: PowerShell@2 |
| 31 | + displayName: 'PreBuild Script' |
| 32 | + inputs: |
| 33 | + targetType: filePath |
| 34 | + filePath: ./devops/PreBuild.ps1 |
| 35 | + arguments: 'Codefoco.CYRTextView CYRTextView.nuspec' |
49 | 36 |
|
50 | | -# - task: MSBuild@1 |
51 | | -# displayName: 'Build solution CYRTextView.sln' |
52 | | -# inputs: |
53 | | -# solution: CYRTextView.sln |
54 | | -# configuration: Release |
| 37 | +- task: MSBuild@1 |
| 38 | + displayName: 'Build solution CYRTextView.sln' |
| 39 | + inputs: |
| 40 | + solution: CYRTextView.sln |
| 41 | + configuration: Release |
55 | 42 |
|
56 | | -# - script: 'nuget setapikey $(apikey)' |
57 | | -# displayName: 'Set NuGet API Key' |
| 43 | +- script: 'nuget setapikey $(apikey)' |
| 44 | + displayName: 'Set NuGet API Key' |
58 | 45 |
|
59 | | -# - task: PowerShell@2 |
60 | | -# displayName: 'Package NuGet' |
61 | | -# inputs: |
62 | | -# targetType: filePath |
63 | | -# filePath: ./devops/Package.ps1 |
64 | | -# arguments: 'Codefoco.CYRTextView CYRTextView.nuspec' |
| 46 | +- task: PowerShell@2 |
| 47 | + displayName: 'Package NuGet' |
| 48 | + inputs: |
| 49 | + targetType: filePath |
| 50 | + filePath: ./devops/Package.ps1 |
| 51 | + arguments: 'Codefoco.CYRTextView CYRTextView.nuspec' |
65 | 52 |
|
66 | | -# - script: 'mv *.nupkg Codefoco.CYRTextview.nupkg' |
67 | | -# displayName: 'Rename NuGet package' |
| 53 | +- script: 'mv *.nupkg Codefoco.CYRTextview.nupkg' |
| 54 | + displayName: 'Rename NuGet package' |
68 | 55 |
|
69 | | -# - task: PublishBuildArtifacts@1 |
70 | | -# displayName: 'Publish Codefoco.CYRTextview.nupkg Artifact' |
71 | | -# inputs: |
72 | | -# PathtoPublish: Codefoco.CYRTextview.nupkg |
73 | | -# ArtifactName: Codefoco.CYRTextview.nupkg |
| 56 | +- task: PublishBuildArtifacts@1 |
| 57 | + displayName: 'Publish Codefoco.CYRTextview.nupkg Artifact' |
| 58 | + inputs: |
| 59 | + PathtoPublish: Codefoco.CYRTextview.nupkg |
| 60 | + ArtifactName: Codefoco.CYRTextview.nupkg |
74 | 61 |
|
75 | | -# - task: PowerShell@2 |
76 | | -# displayName: 'Publish NuGet' |
77 | | -# inputs: |
78 | | -# targetType: filePath |
79 | | -# filePath: ./devops/Publish.ps1 |
80 | | -# arguments: Codefoco.CYRTextView |
| 62 | +- task: PowerShell@2 |
| 63 | + displayName: 'Publish NuGet' |
| 64 | + inputs: |
| 65 | + targetType: filePath |
| 66 | + filePath: ./devops/Publish.ps1 |
| 67 | + arguments: Codefoco.CYRTextView |
81 | 68 |
|
0 commit comments