Skip to content

Commit ec2f327

Browse files
committed
Switched gcloud command from alias to path
1 parent 9262ab4 commit ec2f327

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ cache:
55
directories:
66
- $HOME/gcloud/
77
env:
8-
- GOOGLE_APPLICATION_CREDENTIALS=$TRAVIS_BUILD_DIR/client_secrets.json #Other environment variables on same line
8+
- PATH=$PATH:$HOME/gcloud/google-cloud-sdk/bin GOOGLE_APPLICATION_CREDENTIALS=$TRAVIS_BUILD_DIR/client_secrets.json #Other environment variables on same line
99

1010
before_install:
1111
#ENCRYPT YOUR PRIVATE KEY (If you need authentication)
@@ -27,7 +27,6 @@ before_install:
2727
printf '\ny\n\ny\ny\n' | ./google-cloud-sdk/install.sh &&
2828
cd $TRAVIS_BUILD_DIR;
2929
fi
30-
- alias gcloud=$HOME/gcloud/google-cloud-sdk/bin/gcloud
3130
- printf 'y\n' | gcloud components update
3231
- if [ -a client_secrets.json ]; then
3332
gcloud auth activate-service-account --key-file client_secrets.json;

0 commit comments

Comments
 (0)