Skip to content

Commit 7de3a82

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 7de3a82

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.travis.yml

+3-3
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:
21-
- openssl aes-256-cbc -K $encrypted_37a4f399de75_key -iv $encrypted_37a4f399de75_iv -in service-account.json.enc -out service-account.json -d
19+
- 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)