forked from mozilla-mobile/firefox-ios
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathconfig.yml
More file actions
113 lines (106 loc) · 3.54 KB
/
Copy pathconfig.yml
File metadata and controls
113 lines (106 loc) · 3.54 KB
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
version: 2.1
setup: true
environment_common: &environment_common
environment:
CI: true
macos_common: &macos_common
macos:
xcode: "16.2"
resource_class: macos.m1.medium.gen1
jobs:
build-and-deploy-testflight-beta:
<<: *environment_common
<<: *macos_common
steps:
- checkout
- macos/switch-ruby:
version: "3.2"
- restore_cache:
key: 1-gems-{{ checksum "Gemfile.lock" }}
- run:
name: Bundle install
command: bundle check || bundle install --path vendor/bundle
- save_cache:
key: 1-gems-{{ checksum "Gemfile.lock" }}
paths:
- vendor/bundle
- run:
name: Verify github
command: for ip in $(dig @8.8.8.8 github.com +short); do ssh-keyscan github.com,$ip; ssh-keyscan $ip; done 2>/dev/null >> ~/.ssh/known_hosts
- run:
name: extract Staging XCConfig
command: echo "$STAGING_XCCONFIG" | base64 --decode > firefox-ios/Client/Configuration/Staging.xcconfig
- run:
name: Execute bootstrap
command: ./bootstrap.sh
- run:
name: Build and deploy to Testflight
command: bundle exec fastlane testflight_beta
build-and-deploy-firebase-and-browserstack:
<<: *environment_common
<<: *macos_common
steps:
- checkout
- macos/switch-ruby:
version: "3.2"
- restore_cache:
key: 1-gems-{{ checksum "Gemfile.lock" }}
- run:
name: Bundle install
command: bundle check || bundle install --path vendor/bundle
- save_cache:
key: 1-gems-{{ checksum "Gemfile.lock" }}
paths:
- vendor/bundle
- run:
name: Verify github
command: for ip in $(dig @8.8.8.8 github.com +short); do ssh-keyscan github.com,$ip; ssh-keyscan $ip; done 2>/dev/null >> ~/.ssh/known_hosts
- run:
name: Extract Staging XCConfig
command: echo "$STAGING_XCCONFIG" | base64 --decode > firefox-ios/Client/Configuration/Staging.xcconfig
- run:
name: Execute bootstrap
command: ./bootstrap.sh
- run:
name: Build the Ecosia app
command: bundle exec fastlane build_ecosia_app
- run:
name: Upload to Firebase
command: bundle exec fastlane upload_to_firebase
- run:
name: Upload to Browserstack
command: bundle exec fastlane upload_to_browserstack
- jira/notify:
issue_regexp: "([A-Za-z]{2,30}-[0-9]+)"
pipeline_id: << pipeline.id >>
pipeline_number: << pipeline.number >>
orbs:
path-filtering: circleci/path-filtering@0.1.1
macos: circleci/macos@2
jira: circleci/jira@2.0
workflows:
build-and-upload-to-delivery-platforms:
jobs:
- path-filtering/filter:
filters:
branches:
only:
- /^.*main.*/
name: Deploy release version over Testflight if MARKETING_VERION file updated
config-path: .circleci/deploy-release.yml
mapping: |
Client/Configuration/Common.xcconfig deploy-release true
- build-and-deploy-testflight-beta:
name: Deploy beta version over Testflight
filters:
tags:
only: /^beta.*/
branches:
ignore: /.*/
- build-and-deploy-firebase-and-browserstack:
name: Deploy ad-hoc version over Firebase + Upload to Browserstack
filters:
branches:
only:
- /^.*main.*/
context: napps