From 0ef0f6ece19a7550887aa4104632d766bdfb664f Mon Sep 17 00:00:00 2001 From: len Date: Sun, 1 Oct 2017 12:05:38 +0200 Subject: [PATCH] Travis: don't decode secrets for PRs --- .travis.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9d402bf0a..a7c9ef59b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,9 +10,11 @@ android: licenses: - android-sdk-license-.+ before_install: -- openssl aes-256-cbc -K $encrypted_e56be693d4fd_key -iv $encrypted_e56be693d4fd_iv -in "$PWD/.travis/secrets.tar.enc" -out secrets.tar -d -- tar xf secrets.tar -- mv debug.keystore "$HOME/.android" +- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then + openssl aes-256-cbc -K $encrypted_e56be693d4fd_key -iv $encrypted_e56be693d4fd_iv -in "$PWD/.travis/secrets.tar.enc" -out secrets.tar -d + tar xf secrets.tar + mv debug.keystore "$HOME/.android" + fi - git clone https://github.com/urho3d/android-ndk.git $HOME/android-ndk-root - export ANDROID_NDK_HOME=$HOME/android-ndk-root - mkdir "$ANDROID_HOME/licenses" || true