-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbitrise.yml
101 lines (94 loc) · 3.2 KB
/
bitrise.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
format_version: "9"
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
workflows:
vendor-update:
title: Vendor update
description: |
Used for updating the vendored dependencies
steps:
- script:
title: Vendor update
inputs:
- content: |-
#!/bin/bash
set -ex
go mod vendor
test:
envs:
- IPA_DOWNLOAD_URL: https://raw.githubusercontent.com/bitrise-io/sample-artifacts/master/ipas/ios-xcode-8.0.ipa
- IPA_PATH: ios-xcode-8.0.ipa
- DSYM_DOWNLOAD_URL: https://raw.githubusercontent.com/bitrise-io/sample-artifacts/master/dsyms/ios-xcode-8.0.dSYM.zip
- DSYM_PATH: ios-xcode-8.0.dSYM.zip
- APPCENTER_APP_NAME: steps-appcenter-deploy-ios
- APPCENTER_APP_OWNER: app-center-bot
steps:
- go-list:
- golint:
- errcheck:
- go-test:
- script:
title: Clean _tmp
inputs:
- content: rm -rf ./_tmp
- change-workdir:
title: Change workdir to _tmp
run_if: true
inputs:
- path: ./_tmp
- script:
title: Download testing resources
inputs:
- content: |-
#!/bin/bash
set -ex
curl -f $IPA_DOWNLOAD_URL > $IPA_PATH
curl -f $DSYM_DOWNLOAD_URL > $DSYM_PATH
- path::./:
inputs:
- ipa_path: $IPA_PATH
- api_token: $API_TOKEN
- owner_name: $APPCENTER_APP_OWNER
- app_name: $APPCENTER_APP_NAME
- all_distribution_groups: "no"
- distribution_group: |-
Collaborators
Public
- distribution_tester: [email protected]
- dsym_zip_path: $DSYM_PATH
- release_notes: Bitrise step test
- script:
title: Check output envs
inputs:
- content: |-
#!/bin/bash
set -ex
if [ -z "$APPCENTER_DEPLOY_INSTALL_URL" ]
then
echo "ERROR: APPCENTER_DEPLOY_INSTALL_URL variable empty"
exit 1
fi
if [ -z "$APPCENTER_DEPLOY_DOWNLOAD_URL" ];
then
echo "ERROR: APPCENTER_DEPLOY_DOWNLOAD_URL variable empty"
exit 1
fi
if [ -z "$APPCENTER_PUBLIC_INSTALL_PAGE_URL" ]
then
echo "ERROR: APPCENTER_PUBLIC_INSTALL_PAGE_URL variable empty"
exit 1
fi
if [ "$APPCENTER_DEPLOY_STATUS" != "success" ]
then
echo "ERROR: APPCENTER_DEPLOY_STATUS variable is $APPCENTER_DEPLOY_STATUS"
exit 1
fi
if [ -z $APPCENTER_DEPLOY_RELEASE_ID ];
then
echo "ERROR: APPCENTER_DEPLOY_RELEASE_ID variable empty"
exit 1
fi
envman add --key "APPCENTER_DEPLOY_INSTALL_URL" --value ""
envman add --key "APPCENTER_DEPLOY_DOWNLOAD_URL" --value ""
envman add --key "APPCENTER_PUBLIC_INSTALL_PAGE_URL" --value ""
envman add --key "APPCENTER_DEPLOY_STATUS" --value ""
envman add --key "APPCENTER_DEPLOY_RELEASE_ID" --value ""