Skip to content

Commit

Permalink
Merge pull request #241 from rollbar/improve-travis-to-skip-before-in…
Browse files Browse the repository at this point in the history
…stall-decrypt

Skip before_install decrypt if not rollbar repo or is PR
  • Loading branch information
basoko authored Dec 7, 2020
2 parents 8c8f190 + 5f0d4e8 commit d834a1e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 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;

install:
- sdkmanager --list || true
- sdkmanager --uninstall "system-images;android-15;default;armeabi-v7a"
Expand Down

0 comments on commit d834a1e

Please sign in to comment.