Skip to content

Commit

Permalink
Allow Travis to continue build if decryption fails.
Browse files Browse the repository at this point in the history
Decryption of the service key can fail if Travis is building from a fork
instead of a branch.
  • Loading branch information
tswast committed Apr 25, 2016
1 parent 89e9e51 commit 7de3a82
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
language: java
jdk:
- oraclejdk8
env:
- GOOGLE_APPLICATION_CREDENTIALS=$TRAVIS_BUILD_DIR/service-account.json GCLOUD_PROJECT=cloud-samples-tests
before_install:
- openssl aes-256-cbc -K $encrypted_37a4f399de75_key -iv $encrypted_37a4f399de75_iv -in service-account.json.enc -out service-account.json -d
- openssl aes-256-cbc -K $encrypted_37a4f399de75_key -iv $encrypted_37a4f399de75_iv -in service-account.json.enc -out service-account.json -d \
&& GOOGLE_APPLICATION_CREDENTIALS=$TRAVIS_BUILD_DIR/service-account.json GCLOUD_PROJECT=cloud-samples-tests \
|| true

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

0 comments on commit 7de3a82

Please sign in to comment.