From 1e2e9449212788d5ee3e0ad013021e131adcac15 Mon Sep 17 00:00:00 2001 From: David Basoco Date: Mon, 30 Nov 2020 11:14:19 +0100 Subject: [PATCH 1/2] Skip before_install decrypt if not rollbar repo or is PR --- .travis.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3397540c..4b43cd11 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,8 +33,12 @@ android: - android-sdk-license-.+ - ".+" before_install: -- openssl aes-256-cbc -K $encrypted_d4596825e164_key -iv $encrypted_d4596825e164_iv - -in $ENCRYPTED_GPG_KEY_LOCATION -out $GPG_KEY_LOCATION -d +- if [[ "$TRAVIS_REPO_SLUG" != "rollbar/rollbar-java" || "$TRAVIS_PULL_REQUEST" != "false" ]]; then + echo "Skipping descrypt."; + else + openssl aes-256-cbc -K $encrypted_d4596825e164_key -iv $encrypted_d4596825e164_iv -in $ENCRYPTED_GPG_KEY_LOCATION -out $GPG_KEY_LOCATION -d; + fi; + install: - sdkmanager --list || true - sdkmanager --uninstall "system-images;android-15;default;armeabi-v7a" From 5f0d4e8ab4e18153afd703f157461f7864862ce1 Mon Sep 17 00:00:00 2001 From: David Basoco Date: Sat, 5 Dec 2020 09:16:14 +0100 Subject: [PATCH 2/2] --amend --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 4b43cd11..0e118f52 100644 --- a/.travis.yml +++ b/.travis.yml @@ -34,7 +34,7 @@ android: - ".+" before_install: - if [[ "$TRAVIS_REPO_SLUG" != "rollbar/rollbar-java" || "$TRAVIS_PULL_REQUEST" != "false" ]]; then - echo "Skipping descrypt."; + echo "Skipping decrypt."; else openssl aes-256-cbc -K $encrypted_d4596825e164_key -iv $encrypted_d4596825e164_iv -in $ENCRYPTED_GPG_KEY_LOCATION -out $GPG_KEY_LOCATION -d; fi;