diff --git a/scripts/ci/install.sh b/scripts/ci/install.sh index ab1a715fe..dfbe394a8 100644 --- a/scripts/ci/install.sh +++ b/scripts/ci/install.sh @@ -28,5 +28,4 @@ if [[ "$TRAVIS_PULL_REQUEST" == "false" && \ aws configure set region us-east-2 openssl enc -d -aes-256-cbc -md md5 -k $GCP_CREDS -in scripts/ci/gcp-creds.json.enc -out scripts/ci/gcp-creds.json - gcloud auth activate-service-account --key-file scripts/ci/gcp-creds.json fi diff --git a/tests/test_repro.py b/tests/test_repro.py index 9eee2f4b0..d70a0a3bf 100644 --- a/tests/test_repro.py +++ b/tests/test_repro.py @@ -957,7 +957,7 @@ class TestReproExternalGS(TestReproExternalBase): return "gsutil cp {} {}".format(i, o) def write(self, bucket, key, body): - client = gc.Client() + client = gc.Client.from_service_account_json(self.GCP_CREDS_FILE) bucket = client.bucket(bucket) bucket.blob(key).upload_from_string(body)