Move firebase test lab logs to a staging bucket (flutter/engine#35149)
* Updated the bucket for firebase testing to the staging project. * updated the project. * Adding environment variables for gcp project and storage bucket. * Updated to exit if environment variables were not provided.
This commit is contained in:
@@ -11,7 +11,16 @@ import os
|
||||
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')
|
||||
@@ -28,7 +37,7 @@ def run_firebase_test(apk, results_dir):
|
||||
[
|
||||
'gcloud',
|
||||
'--project',
|
||||
'flutter-infra',
|
||||
PROJECT,
|
||||
'firebase',
|
||||
'test',
|
||||
'android',
|
||||
|
||||
Reference in New Issue
Block a user