23
23
24
24
set -euo pipefail
25
25
26
- # Set up secrets for integration tests and metrics collection. This does not work for pull
27
- # requests from forks. See
28
- # https://docs.travis-ci.com/user/pull-requests#pull-requests-and-security-restrictions
29
- function install_secrets() {
30
- if [[ -n " ${encrypted_de2056405dcb_key:- } " && $secrets_installed != true ]]; then
31
- secrets_installed=true
32
- openssl aes-256-cbc -K $encrypted_de2056405dcb_key -iv $encrypted_de2056405dcb_iv \
33
- -in scripts/travis-encrypted/Secrets.tar.enc \
34
- -out scripts/travis-encrypted/Secrets.tar -d
35
-
36
- tar xvf scripts/travis-encrypted/Secrets.tar
37
-
38
- cp Secrets/Storage/App/GoogleService-Info.plist FirebaseStorage/Tests/Integration/Resources/GoogleService-Info.plist
39
-
40
- # Firebase Installations
41
- fis_resources_dir=FirebaseInstallations/Source/Tests/Resources/
42
- mkdir -p " $fis_resources_dir "
43
- cp Secrets/Installations/GoogleService-Info.plist " $fis_resources_dir "
44
-
45
- # FirebaseInstanceID
46
- iid_resources_dir=Example/InstanceID/Resources/
47
- mkdir -p " $iid_resources_dir "
48
- cp Secrets/Installations/GoogleService-Info.plist " $iid_resources_dir "
49
- fi
50
- }
51
-
52
26
# apt_install program package
53
27
#
54
28
# Installs the given package if the given command is missing
@@ -65,8 +39,6 @@ function install_xcpretty() {
65
39
fi
66
40
}
67
41
68
- secrets_installed=false
69
-
70
42
# Default values, if not supplied on the command line or environment
71
43
platform=" iOS"
72
44
method=" xcodebuild"
@@ -95,11 +67,6 @@ if [[ "$method" != "cmake" ]]; then
95
67
scripts/setup_bundler.sh
96
68
fi
97
69
98
- if [[ ! -z " ${QUICKSTART:- } " ]]; then
99
- install_secrets
100
- scripts/setup_quickstart.sh " $QUICKSTART "
101
- fi
102
-
103
70
case " $project -$platform -$method " in
104
71
105
72
FirebasePod-iOS-* )
@@ -127,15 +94,6 @@ case "$project-$platform-$method" in
127
94
Storage-* )
128
95
;;
129
96
130
- Installations-* )
131
- install_secrets
132
- ;;
133
-
134
- # There is purposefully not a dash to include InstanceIDCron.
135
- InstanceID* )
136
- install_secrets
137
- ;;
138
-
139
97
InAppMessaging-* -xcodebuild)
140
98
install_xcpretty
141
99
bundle exec pod install --project-directory=FirebaseInAppMessaging/Tests/Integration/DefaultUITestApp --no-repo-update
0 commit comments