forked from fileformat/bitrise-step-appcenter-app-release
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
executable file
·39 lines (31 loc) · 869 Bytes
/
test.sh
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
#!/bin/bash
#
# test various settings
#
set -o errexit
set -o pipefail
set -o nounset
#
# .env must have the following set to valid values:
# APPCENTER_API_TOKEN
# APPCENTER_ORG
# APPCENTER_NAME
# ARTIFACT_PATH
#
export $(cat .env)
echo "INFO: testing with defaults"
bitrise run test
echo "INFO: testing to 1 group, no notifications"
export DISTRIBUTION_GROUPS=x-test-group-1
export NOTIFY_TESTERS=false
bitrise run test
echo "INFO: testing to second group, w/notifications and release notes"
export DISTRIBUTION_GROUPS=x-test-group-2
export NOTIFY_TESTERS=true
export RELEASE_NOTES="Hey there, just testing at $(date)"
bitrise run test
echo "INFO: testing to two groups, w/notifications and release notes"
export DISTRIBUTION_GROUPS=x-test-group-1,x-test-group-2
export NOTIFY_TESTERS=true
export RELEASE_NOTES="Wow! Another test at $(date)!"
bitrise run test