Skip to content

Commit 6e2e5f2

Browse files
committed
Allow Travis to continue build if decryption fails.
Decryption of the service key can fail if Travis is building from a fork instead of a branch.
1 parent 89e9e51 commit 6e2e5f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
language: java
1616
jdk:
1717
- oraclejdk8
18-
env:
19-
- GOOGLE_APPLICATION_CREDENTIALS=$TRAVIS_BUILD_DIR/service-account.json GCLOUD_PROJECT=cloud-samples-tests
2018
before_install:
2119
- openssl aes-256-cbc -K $encrypted_37a4f399de75_key -iv $encrypted_37a4f399de75_iv -in service-account.json.enc -out service-account.json -d
20+
&& GOOGLE_APPLICATION_CREDENTIALS=$TRAVIS_BUILD_DIR/service-account.json GCLOUD_PROJECT=cloud-samples-tests
21+
|| true
2222

2323
script: mvn --batch-mode clean verify -DskipTests=false | egrep -v "(^\[INFO\] Download|^\[INFO\].*skipping)"
2424
after_success:

0 commit comments

Comments
 (0)