-
Notifications
You must be signed in to change notification settings - Fork 33
/
azure-pipelines.yml
123 lines (107 loc) · 3.1 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
trigger:
- master
pr: none
pool:
vmImage: 'macos-latest'
variables:
- group: acs-ios
- group: git-credentials
- group: source-clear-credentials
- group: ios-signing
- name: configuration
value: 'Release'
- name: sdk
value: 'iphoneos'
- name: cocoapods_path
value: $(Pipeline.Workspace)/.cocoapods
steps:
- checkout: self
submodules: true
- task: CmdLine@2
displayName: Adding Alfresco private podspec repository
inputs:
script: |
pod repo add AlfrescoPodspec https://$(gitUser):$(gitPAT)@github.com/Alfresco/alfresco-private-podspecs-ios-sdk.git
- task: Cache@2
inputs:
key: 'cocoapods | Podfile.lock'
restoreKeys: cocoapods
path: $(cocoapods_path)
displayName: Cache CocoaPods Specs
- task: CocoaPods@0
inputs:
forceRepoUpdate: true
- task: Cache@2
inputs:
key: 'pods | Podfile.lock'
restoreKeys: pods
path: Pods
displayName: Cache Pods
- task: CmdLine@2
displayName: Installing pods
inputs:
script: |
pod install || pod install --repo-update
env:
CP_HOME_DIR: $(cocoapods_path)
- task: CmdLine@2
displayName: Variable substitution for GoogleAnalytics
inputs:
script: 'plutil -replace API_KEY -string $(GA_API_KEY) GoogleService-Info.plist'
workingDirectory: '$(System.DefaultWorkingDirectory)/AlfrescoApp/Supporting Files/'
- task: InstallAppleCertificate@2
inputs:
certSecureFile: '$(p12CertName)'
certPwd: '$(p12CertPassword)'
keychain: 'temp'
deleteCert: true
- task: InstallAppleProvisioningProfile@1
inputs:
provisioningProfileLocation: 'secureFiles'
provProfileSecureFile: '$(provisioning_profile)'
removeProfile: true
- task: DownloadSecureFile@1
name: prov_profile
inputs:
secureFile: '$(provisioning_profile)'
- task: Xcode@5
displayName: 'Generate Content Services IPA'
inputs:
actions: 'build'
scheme: 'AlfrescoApp'
sdk: '$(sdk)'
configuration: '$(configuration)'
xcWorkspacePath: '**/AlfrescoApp.xcworkspace'
xcodeVersion: 'default'
packageApp: true
signingOption: 'manual'
signingIdentity: '$(APPLE_CERTIFICATE_SIGNING_IDENTITY)'
provisioningProfileUuid: '$(APPLE_PROV_PROFILE_UUID)'
- task: CopyFiles@2
inputs:
contents: '**/*.ipa'
targetFolder: '$(build.artifactStagingDirectory)'
overWrite: true
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: '$(build.artifactStagingDirectory)'
artifactName: 'ACS-iOS'
publishLocation: 'Container'
- task: CmdLine@2
displayName: 'Build and Pilot'
inputs:
script: 'bundle update && bundle exec fastlane build_and_pilot'
env:
FASTLANE_DISABLE_COLORS: 'true'
FASTLANE_USER: $(appstore_upload_user)
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD: $(appstore_upload_token)
PROV_PROFILE: $(prov_profile.secureFilePath)
SIGNING_IDENTITY: $(signing_identity)
APPSTORE_APP_ID: $(appstore_app_id)
CONFIGURATION: $(configuration)
- task: CmdLine@2
inputs:
script: 'curl -sSL https://download.sourceclear.com/ci.sh | sh'
displayName: 'Performing Source Clear checks'
env:
SRCCLR_API_TOKEN: $(source_clear_token)