-
Notifications
You must be signed in to change notification settings - Fork 4
/
azure-pipelines.yml
88 lines (76 loc) · 2.04 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
trigger:
- main
pool:
vmImage: 'macos-latest'
variables:
- group: git-credentials
- group: source-clear-credentials
- group: ios-signing
- group: content-ios
- name: configuration
value: 'Release'
- name: sdk
value: 'iphoneos'
- name: cocoapods_path
value: $(Pipeline.Workspace)/.cocoapods
steps:
- checkout: self
- task: Cache@2
inputs:
key: 'cocoapods | Podfile.lock'
restoreKeys: cocoapods
path: $(cocoapods_path)
displayName: Cache CocoaPods Specs
- task: Cache@2
inputs:
key: 'pods | Podfile.lock'
restoreKeys: pods
path: Pods
displayName: Cache Pods
- task: ios-bundle-version@1
inputs:
sourcePath: 'ContentApp/Supporting Files/Info.plist'
versionCodeOption: 'buildid'
versionCode: '$(build_version)'
versionName: '1.1.0'
printFile: true
- task: CmdLine@2
displayName: Installing pods
inputs:
script: |
pod install || pod install --repo-update
env:
CP_HOME_DIR: $(cocoapods_path)
- task: InstallAppleCertificate@2
inputs:
certSecureFile: '$(p12FileName)'
certPwd: '$(p12Password)'
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: 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)