-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* empty commit * add debugging to robo test * add quiet install for gcloud beta * add cache path for gcloud beta component * empty commit * update gcloud install dir * add debugging to gcloud sdk install step * add quiet flag to gcloud install * remove whitespace on quiet
- Loading branch information
Showing
1 changed file
with
12 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1385,26 +1385,26 @@ workflows: | |
- deploy-to-bitrise-io@2: {} | ||
- [email protected]: | ||
inputs: | ||
- cache_paths: "$HOME/google-cloud-sdk" | ||
- cache_paths: "$HOME/sdk/google-cloud-sdk" | ||
- script@1: | ||
title: Install Google Cloud SDK | ||
inputs: | ||
- content: |- | ||
#!/usr/bin/env bash | ||
set -e | ||
set -ex | ||
if [ -e $HOME/google-cloud-sdk ]; then | ||
if [ -e $HOME/sdk/google-cloud-sdk ]; then | ||
echo "Google Cloud SDK found, skipping installation..." | ||
else | ||
echo "Google Cloud SDK not found, installing..." | ||
curl https://sdk.cloud.google.com > install.sh | ||
bash install.sh --disable-prompts | ||
source $HOME/google-cloud-sdk/path.bash.inc | ||
gcloud components install beta | ||
bash install.sh --disable-prompts --install-dir=$HOME/sdk | ||
source $HOME/sdk/google-cloud-sdk/path.bash.inc | ||
gcloud components install beta --quiet | ||
fi | ||
- [email protected]: | ||
inputs: | ||
- cache_paths: "$HOME/google-cloud-sdk" | ||
- cache_paths: "$HOME/sdk/google-cloud-sdk" | ||
- ignore_check_on_paths: "!/Users/vagrant/Library/Developer/Xcode/DerivedData/**" | ||
- compress_archive: "true" | ||
- script@1: | ||
|
@@ -1414,17 +1414,18 @@ workflows: | |
#!/usr/bin/env bash | ||
set -ex | ||
curl -o /tmp/key-file.json $BITRISEIO_GOOGLE_APPLICATION_CREDENTIALS_URL | ||
$HOME/google-cloud-sdk/bin/gcloud version | ||
$HOME/google-cloud-sdk/bin/gcloud auth activate-service-account -q --key-file /tmp/key-file.json | ||
$HOME/google-cloud-sdk/bin/gcloud config set project "$GOOGLE_CLOUD_PROJECT" | ||
GCLOUD_OUTPUT=$($HOME/google-cloud-sdk/bin/gcloud beta firebase test ios run \ | ||
$HOME/sdk/google-cloud-sdk/bin/gcloud version | ||
$HOME/sdk/google-cloud-sdk/bin/gcloud auth activate-service-account -q --key-file /tmp/key-file.json | ||
$HOME/sdk/google-cloud-sdk/bin/gcloud config set project "$GOOGLE_CLOUD_PROJECT" | ||
GCLOUD_OUTPUT=$($HOME/sdk/google-cloud-sdk/bin/gcloud beta firebase test ios run \ | ||
--type robo \ | ||
--app "$BITRISE_IPA_PATH" \ | ||
--device=model=iphone13pro,version=15.7 \ | ||
--device=model=iphone8,version=16.6 \ | ||
--results-bucket=firefox_ios_test_artifacts \ | ||
--no-record-video \ | ||
--client-details=matrixLabel="Bitrise" \ | ||
--quiet \ | ||
2>&1 | tee /dev/stdout) | ||
GCLOUD_EXITCODE=${PIPESTATUS[0]} | ||
|