Skip to content

Commit d788ede

Browse files
committed
Move to bitrise.yml
1 parent b2db288 commit d788ede

File tree

1 file changed

+129
-0
lines changed

1 file changed

+129
-0
lines changed

bitrise.yml

+129
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
---
2+
format_version: '8'
3+
default_step_lib_source: 'https://github.com/bitrise-io/bitrise-steplib.git'
4+
project_type: ios
5+
trigger_map:
6+
- push_branch: master
7+
workflow: deploy
8+
- pull_request_source_branch: '*'
9+
workflow: primary
10+
workflows:
11+
deploy:
12+
steps:
13+
- activate-ssh-key@4:
14+
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
15+
- git-clone@4: {}
16+
- cache-pull@2: {}
17+
- recreate-user-schemes@1:
18+
inputs:
19+
- project_path: $BITRISE_PROJECT_PATH
20+
- certificate-and-profile-installer@1: {}
21+
- script@1:
22+
inputs:
23+
- content: |-
24+
#!/usr/bin/env bash
25+
# fail if any commands fails
26+
set -e
27+
# debug log
28+
set -x
29+
30+
# write your script here
31+
xcodebuild -workspace $BITRISE_PROJECT_PATH -list
32+
33+
# or run a script from your repository, like:
34+
# bash ./path/to/script.sh
35+
# not just bash, e.g.:
36+
# ruby ./path/to/script.rb
37+
- set-xcode-build-number@1:
38+
inputs:
39+
- plist_path: Puffery/Info.plist
40+
title: 'Puffery: Set Xcode Project Build Number'
41+
- set-xcode-build-number@1:
42+
inputs:
43+
- plist_path: Puffery Intents/Info.plist
44+
title: 'Puffery Intent: Set Xcode Project Build Number'
45+
- xcode-archive@2:
46+
inputs:
47+
- configuration: Release
48+
- export_method: app-store
49+
- deploy-to-itunesconnect-application-loader@0:
50+
inputs:
51+
- password: $PUFFERY_APPLE_PASSWORD
52+
- app_password: $PUFFERY_APPLE_APP_PASSWORD
53+
- itunescon_user: $PUFFERY_APPLE_ID
54+
- deploy-to-bitrise-io@1:
55+
inputs:
56+
- notify_user_groups: none
57+
- cache-push@2: {}
58+
- script@1:
59+
inputs:
60+
- content: |
61+
#!/usr/bin/env bash
62+
# fail if any commands fails
63+
set -e
64+
# debug log
65+
set -x
66+
67+
# write your script here
68+
curl -X "POST" "https://vapor.puffery.app/notify/$PUFFERY_CHANNEL" \
69+
-H 'Content-Type: application/json; charset=utf-8' \
70+
-d "{
71+
\"title\": \"New Puffery build $BITRISE_BUILD_NUMBER\",
72+
\"body\": \"$BITRISE_GIT_MESSAGE\",
73+
\"color\": \"blue\",
74+
}"
75+
title: Puffery Passed
76+
- script@1:
77+
is_always_run: true
78+
run_if: .IsBuildFailed
79+
inputs:
80+
- content: |
81+
#!/usr/bin/env bash
82+
# fail if any commands fails
83+
set -e
84+
# debug log
85+
set -x
86+
87+
# write your script here
88+
curl -X "POST" "https://vapor.puffery.app/notify/$PUFFERY_CHANNEL" \
89+
-H 'Content-Type: application/json; charset=utf-8' \
90+
-d "{
91+
\"title\": \"Build failed $BITRISE_BUILD_NUMBER\",
92+
\"body\": \"$BITRISE_GIT_MESSAGE\",
93+
\"color\": \"red\",
94+
}"
95+
title: Puffery Failed
96+
primary:
97+
steps:
98+
- activate-ssh-key@4:
99+
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
100+
- git-clone@4: {}
101+
- cache-pull@2: {}
102+
- set-xcode-build-number@1:
103+
inputs:
104+
- plist_path: Puffery/Info.plist
105+
title: 'Puffery: Set Xcode Project Build Number'
106+
- set-xcode-build-number@1:
107+
inputs:
108+
- plist_path: Puffery Intents/Info.plist
109+
title: 'Puffery Intents: Set Xcode Project Build Number'
110+
- xcode-test@2:
111+
inputs:
112+
- generate_code_coverage_files: 'yes'
113+
title: Puffery Xcode Test
114+
- certificate-and-profile-installer@1: {}
115+
- cache-push@2: {}
116+
app:
117+
envs:
118+
- opts:
119+
is_expand: false
120+
BITRISE_PROJECT_PATH: Puffery.xcworkspace
121+
- BITRISE_SCHEME: Puffery
122+
opts:
123+
is_expand: false
124+
- opts:
125+
is_expand: false
126+
BITRISE_EXPORT_METHOD: app-store
127+
- opts:
128+
is_expand: false
129+
BITRISE_CATALYST_PROVISIONING_PROFILE: a43b7298-7d38-4022-bcfb-37772c75f0e2

0 commit comments

Comments
 (0)