Skip to content

Commit d0078d1

Browse files
---
yaml --- r: 5813 b: refs/heads/master c: 9a86280 h: refs/heads/master i: 5811: fdf48bc
1 parent 16dd285 commit d0078d1

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 269025fdc14af0b68df214a4518be5379b2fe569
2+
refs/heads/master: 9a86280ac70620a47daffd7ecb19e355838bb03b
33
refs/heads/travis: 47e4fee4fd5af9b2a8ce46f23c72ec95f9b195b2
44
refs/heads/gh-pages: 4154fc3537163299162c8c903f2d1386463dd7a3
55
refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444

trunk/utilities/integration_test_env.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# Remove orphaned firewall rules and networks generated by unintentional aborted runs of
2+
# google-cloud-node on gapic-test project: see
3+
# https://github.com/GoogleCloudPlatform/google-cloud-java/issues/2118
4+
firewalls=$(gcloud compute firewall-rules list | cut -f 1 -d ' ' | grep '^gcloud-tests')
5+
if [[ $firewalls ]]
6+
then
7+
echo 'Y' | gcloud compute firewall-rules delete $firewalls
8+
fi
9+
networks=$(gcloud compute networks list | cut -f 1 -d ' ' | grep '^gcloud-tests')
10+
if [[ $networks ]]
11+
then
12+
echo 'Y' | gcloud compute networks delete $networks
13+
fi
14+
115
# Export test env variables
216
export GCLOUD_PROJECT="gcloud-devel"
317
export GOOGLE_APPLICATION_CREDENTIALS=$TRAVIS_BUILD_DIR/signing-tools/gcloud-devel-travis.json

0 commit comments

Comments
 (0)