From 7de3a82a1ab0da95da960aba786880a8ab9ce7ad Mon Sep 17 00:00:00 2001 From: Tim Swast Date: Mon, 25 Apr 2016 12:58:40 -0700 Subject: [PATCH] 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. --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1f24d1d1a51..43ef8994553 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: