From 2b0e696dd8bfda706c019c2d9cf7b677a25358dc Mon Sep 17 00:00:00 2001 From: Luis Montealegre Date: Mon, 22 Jul 2019 20:34:04 -0500 Subject: [PATCH] chore: Do not try to decrypt in Pull Requests - Pull Requests builds were breaking because of this --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 722c133..ffac85c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -34,7 +34,6 @@ before_install: - sudo apt-get update - sudo apt-get -y --reinstall install imagemagick - yes | pecl install imagick - - openssl aes-256-cbc -K $encrypted_2ff9b681a952_key -iv $encrypted_2ff9b681a952_iv -in .travis/secrets.tar.enc -out .travis/secrets.tar -d before_script: - travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist @@ -47,7 +46,8 @@ after_script: - php ocular.phar code-coverage:upload --format=php-clover coverage.clover after_success: - - curl -OS http://couscous.io/couscous.phar + - if [[ $EXECUTE_DEPLOYMENT == 'true' && $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then openssl aes-256-cbc -K $encrypted_2ff9b681a952_key -iv $encrypted_2ff9b681a952_iv -in .travis/secrets.tar.enc -out .travis/secrets.tar -d ; fi + - if [[ $EXECUTE_DEPLOYMENT == 'true' && $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then curl -OS http://couscous.io/couscous.phar ; fi - if [[ $EXECUTE_DEPLOYMENT == 'true' && $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then php couscous.phar travis-auto-deploy --php-version $TRAVIS_PHP_VERSION ; fi - if [[ $EXECUTE_DEPLOYMENT == 'true' && $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then composer install --no-dev ; fi - if [[ $EXECUTE_DEPLOYMENT == 'true' && $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then ./phar.sh ; fi