Skip to content

Commit 4f5def7

Browse files
Install gcloud on Travis for integration test setup
Caches install; downloads only if updates available. Addresses #2118.
1 parent 2079068 commit 4f5def7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,20 @@ before_install:
1616
- cp target/travis/logging.properties logging.properties
1717
install: mvn install --quiet -Djava.util.logging.config.file=logging.properties -DskipTests=true
1818
-Dgpg.skip=true
19+
cache:
20+
directories:
21+
- "$HOME/google-cloud-sdk/"
1922
script:
23+
- |
24+
if [ ! -d "$HOME/google-cloud-sdk/bin" ]
25+
then
26+
rm -rf "$HOME/google-cloud-sdk"
27+
export CLOUDSDK_CORE_DISABLE_PROMPTS=1
28+
curl https://sdk.cloud.google.com | bash
29+
fi
30+
gcloud components update
31+
source "$HOME/google-cloud-sdk/path.bash.inc"
32+
gcloud version
2033
- travis_wait 60 utilities/verify.sh
2134
after_success:
2235
- utilities/after_success.sh

0 commit comments

Comments
 (0)