Update mobile.azure-pipelines.yaml for Azure Pipelines
This commit is contained in:
Родитель
53eae19fbe
Коммит
94e6a77dcb
|
@ -17,6 +17,7 @@ jobs:
|
|||
restoreSolution: 'Mobile/**/*.csproj'
|
||||
feedsToUse: 'select'
|
||||
versioningScheme: 'off'
|
||||
|
||||
- task: replacetokens@3
|
||||
inputs:
|
||||
rootDirectory: 'Mobile/ContosoFieldService.Core/Helpers'
|
||||
|
@ -27,21 +28,25 @@ jobs:
|
|||
keepToken: false
|
||||
tokenPrefix: '__'
|
||||
tokenSuffix: '__'
|
||||
|
||||
- task: ios-bundle-version@1
|
||||
inputs:
|
||||
sourcePath: 'Mobile/iOS/Info.plist'
|
||||
versionCodeOption: 'buildid'
|
||||
versionCode: '$(Build.BuildId)'
|
||||
printFile: false
|
||||
|
||||
- task: InstallAppleCertificate@2
|
||||
inputs:
|
||||
certSecureFile: 'Xamarin-Shared-In-House-Cert-PrivateKey.p12'
|
||||
certPwd: '$(iOS-Certificate-Password)'
|
||||
keychain: 'temp'
|
||||
|
||||
- task: InstallAppleProvisioningProfile@1
|
||||
inputs:
|
||||
provisioningProfileLocation: 'secureFiles'
|
||||
provProfileSecureFile: 'Contoso_Maintenance_InHouse.mobileprovision'
|
||||
|
||||
- task: XamariniOS@2
|
||||
inputs:
|
||||
solutionFile: 'Mobile/iOS/ContosoFieldService.iOS.csproj'
|
||||
|
@ -51,6 +56,7 @@ jobs:
|
|||
args: '/p:OutputPath="$(Build.ArtifactStagingDirectory)/iOS"'
|
||||
signingIdentity: '$(APPLE_CERTIFICATE_SIGNING_IDENTITY)'
|
||||
signingProvisioningProfileID: '$(APPLE_PROV_PROFILE_UUID)'
|
||||
|
||||
- task: XamariniOS@2
|
||||
inputs:
|
||||
solutionFile: 'Mobile/iOS/ContosoFieldService.iOS.csproj'
|
||||
|
@ -60,16 +66,19 @@ jobs:
|
|||
args: '/p:OutputPath="$(Build.ArtifactStagingDirectory)/iOS/TestCloud"'
|
||||
signingIdentity: '$(APPLE_CERTIFICATE_SIGNING_IDENTITY)'
|
||||
signingProvisioningProfileID: '$(APPLE_PROV_PROFILE_UUID)'
|
||||
|
||||
- task: MSBuild@1
|
||||
inputs:
|
||||
solution: 'Mobile/UITests/ContosoFieldService.UITests.csproj'
|
||||
configuration: '$(BuildConfiguration)'
|
||||
msbuildArguments: '/p:OutputPath="$(Build.ArtifactStagingDirectory)/iOS/TestCloud"'
|
||||
|
||||
- task: CopyFiles@2
|
||||
inputs:
|
||||
SourceFolder: '$(Build.Repository.LocalPath)/packages/Xamarin.UITest.2.2.6/'
|
||||
Contents: '**'
|
||||
TargetFolder: '$(Build.ArtifactStagingDirectory)/iOS/TestCloud/packages/Xamarin.UITest.2.2.6/'
|
||||
|
||||
- task: PublishBuildArtifacts@1
|
||||
inputs:
|
||||
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
|
||||
|
|
Загрузка…
Ссылка в новой задаче