-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
125 lines (102 loc) · 3.55 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
124
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- master
- release/*
- develop
- feature/*
pr: none
variables:
- group: situmArtifactory
- group: Passwords
- group: SoftwareVersions
resources:
repositories:
- repository: sys_kubernetes_templates
type: bitbucket
endpoint: Bitbucket - sistemas
name: situm/sys-kubernetes-templates.git
ref: master
- repository: web_developers
type: bitbucket
endpoint: Bitbucket - sistemas
name: situm/web-developers.git
ref: master
pool:
vmImage: $(macOSVersion)
steps:
- checkout: self
fetchDepth: 1
fetchTags: false
displayName: Checkout self
- ${{ if eq(variables['Build.SourceBranchName'], 'master') }}:
- template: azure-templates/upload-sharepoint.yml@sys_kubernetes_templates
parameters:
prepare_sharepoint: False
properties_file: 'ios-swift-library-wayfinding/scripts/framework.properties'
prepare_ndk: false
- ${{ if ne(variables['Build.SourceBranchName'], 'master') }}:
- template: azure-templates/upload-sharepoint.yml@sys_kubernetes_templates
parameters:
prepare_sharepoint: False
properties_file: 'scripts/framework.properties'
prepare_ndk: false
- task: InstallAppleCertificate@2
inputs:
certSecureFile: AppleCert23.p12
- task: InstallAppleProvisioningProfile@1
inputs:
provisioningProfileLocation: 'secureFiles'
provProfileSecureFile: 566ecab6-e43e-473a-9daa-2456d675f241.mobileprovision
removeProfile: true
# release/* branches:
- ${{ if contains(variables['Build.SourceBranch'], 'release/') }}:
- template: azure/create_artifacts.yml
parameters:
buildTypes:
- name: Release
zipName: SitumWayfinding.appledoc-$(version).zip
reponame: lib-release-local-private/iOS/SitumWayfinding/$(branch)/$(version)/
xcodeVersion: $(xcodeVersion)
- ${{ if or(contains(variables['Build.SourceBranch'], 'feature/'),contains(variables['Build.SourceBranchName'],'develop')) }}:
- template: azure/create_artifacts.yml
parameters:
buildTypes:
- name: Debug
zipName: SitumWayfinding.appledoc-$(branch)-$(version)-DEV.zip
reponame: libs-snapshot-local-private/iOS/SitumWayfinding/$(branch)/$(version)
xcodeVersion: $(xcodeVersion)
- ${{ if eq(variables['Build.SourceBranchName'], 'master') }}:
- template: azure-templates/publish_release.yml@sys_kubernetes_templates
parameters:
bitbucket:
bitbucket_user: situmops
system: "N/A"
server: "github"
repoFolder: "ios-swift-library-wayfinding"
- template: azure-templates/commit-doc.yaml@sys_kubernetes_templates
parameters:
version: $(version)
docPath: "sdk_documentation/wayfinding/appledoc"
system: "ios"
release: "ios-wayfinding"
artifactId: "SitumWayfinding"
bitbucket:
bitbucket_user: $(bitbucket_user)
bitbucket_pass: $(bitbucket_pass)
- task: DownloadSecureFile@1
name: netrc
inputs:
secureFile: netrc
- bash: |
echo -e "\n[+] Configure pod trunk register........\n"
cp $(netrc.secureFilePath) ~/.netrc
chmod 0600 ~/.netrc
echo -e "\n[+] Show pod trunk sessions...........\n"
pod trunk me
cd ios-swift-library-wayfinding
echo -e "\n[+] Pod push WYF..........."
pod trunk push SitumWayfinding.podspec --skip-import-validation --allow-warnings
displayName: Push podspec