Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions ci/firebase_testlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,16 @@
import subprocess
import sys

BUCKET = 'gs://flutter_firebase_testlab'
if 'STORAGE_BUCKET' not in os.environ:
print('The GCP storage bucket must be provided as an environment variable.')
sys.exit(1)
BUCKET = os.environ['STORAGE_BUCKET']

if 'GCP_PROJECT' not in os.environ:
print('The GCP project must be provided as an environment variable.')
sys.exit(1)
PROJECT = os.environ['GCP_PROJECT']

script_dir = os.path.dirname(os.path.realpath(__file__))
buildroot_dir = os.path.abspath(os.path.join(script_dir, '..', '..'))
out_dir = os.path.join(buildroot_dir, 'out')
Expand All @@ -28,7 +37,7 @@ def run_firebase_test(apk, results_dir):
[
'gcloud',
'--project',
'flutter-infra',
PROJECT,
'firebase',
'test',
'android',
Expand Down