-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vsts-ci.yml
81 lines (69 loc) · 2.08 KB
/
.vsts-ci.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
steps:
- task: InstallAppleCertificate@1
displayName: Install Apple Certificate
inputs:
certSecureFile: ios_Certificates.p12
certPwd: $(certificates.pass)
- task: InstallAppleProvisioningProfile@1
displayName: Install privisioning profile
inputs:
provProfileSecureFile: mobile.mobileprovision
- task: npm@1
displayName: Restore npm
inputs:
command: install
- task: npm@1
displayName: Set build number
inputs:
command: custom
customCommand: version "$(app.versionPrefix)$(Build.BuildId)"
- task: npm@1
displayName: Update version
inputs:
command: custom
customCommand: run update-version
- task: IonicCommand@1
displayName: add android
inputs:
ionicCommand: cordova platform add android
ionicArgs: -r -e --nofetch
- task: IonicCommand@1
displayName: add ios
inputs:
ionicCommand: cordova platform add ios
ionicArgs: -r -e --nofetch
- task: CocoaPods@0
displayName: pod install
inputs:
cwd: platforms/ios
- task: IonicCommand@1
displayName: build android
inputs:
ionicCommand: cordova build android
ionicArgs: --release --prod --device
- task: AndroidSigning@2
displayName: Sign android
inputs:
files: platforms/android/**/*.apk
keystoreFile: android.key
keystorePass: $(certificates.pass)
keystoreAlias: android.keystore
keyPass: $(certificates.pass)
jarsignerArguments: -verbose -sigalg MD5withRSA -digestalg SHA1
- task: IonicCommand@1
displayName: build ios
inputs:
ionicCommand: cordova build ios
ionicArgs: --release --prod --device --buildConfig=keys/ios.json
- task: PublishBuildArtifacts@1
displayName: Publish iOS
inputs:
pathToPublish: platforms/ios/build/device/Flymark.ipa
artifactName: iOS
artifactType: container
- task: PublishBuildArtifacts@1
displayName: Android
inputs:
pathToPublish: $(Build.SourcesDirectory)/platforms/android/build/outputs/apk
artifactName: Android
artifactType: container