forked from PrismLibrary/Prism
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathe2e-ios.yml
59 lines (52 loc) · 1.63 KB
/
e2e-ios.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
parameters:
- name: buildConfiguration
type: string
default: 'Debug'
- name: versionName
type: string
default: ''
jobs:
- job: e2eIOS
displayName: E2E iOS App
pool:
vmImage: $(MacImage)
demands:
- MSBuild
workspace:
clean: all
steps:
- task: ios-bundle-version@1
displayName: 'Bump iOS Versions in Info.plist'
inputs:
sourcePath: e2e/Forms/src/HelloWorld.iOS/Info.plist
versionCodeOption: 'buildid'
versionCode: '$(Build.BuildId)'
versionName: ${{ parameters.versionName }}
printFile: true
- template: ../steps/set-runtime.yml
- template: ../steps/prepare-build.yml
parameters:
solution: e2e/Forms/HelloWorld.sln
- task: XamariniOS@2
displayName: 'Build Xamarin.iOS solution HelloWorld.iOS.csproj'
inputs:
solutionFile: 'e2e/Forms/src/HelloWorld.iOS/HelloWorld.iOS.csproj'
configuration: ${{ parameters.buildConfiguration }}
buildForSimulator: true
# - bash: |
# echo "Copying files to ${stagingDir}"
# rm -rf $stagingDir/Debug
# cp HelloWorld.iOS.ipa $stagingDir
# cp -R HelloWorld.iOS.app.dSYM $stagingDir
# displayName: Stage Artifacts
# workingDirectory: 'e2e/Forms/src/HelloWorld.iOS/bin/iPhone/${{ parameters.buildConfiguration }}'
# env:
# stagingDir: $(Build.ArtifactStagingDirectory)
# - bash: rm -rf NuGet
# displayName: Cleanup ArtifactStagingDirectory
# workingDirectory: $(Build.ArtifactStagingDirectory)
# - task: PublishPipelineArtifact@1
# displayName: 'Publish E2E Artifacts'
# inputs:
# targetPath: '$(Build.ArtifactStagingDirectory)'
# artifactName: E2E-iOS