From 22aa4c3b315d292aec7244428531d54cfe036404 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Thu, 23 Jun 2016 07:44:54 +0200 Subject: [PATCH] Fix composer & TLS --- .travis.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6961d5d..32f7f27 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,15 +26,17 @@ cache: - vendor - $HOME/.composer/cache -install: - - composer self-update - -before_script: +before_install: - if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi; # disable TLS for composer because openssl is disabled for PHP 5.3.3 on travis # see: https://blog.travis-ci.com/upcoming_ubuntu_11_10_migration/ - if [[ $TRAVIS_PHP_VERSION = 5.3.3 ]]; then composer config -g -- disable-tls true; fi; - if [[ $TRAVIS_PHP_VERSION = 5.3.3 ]]; then composer config -g -- secure-http false; fi; + +install: + - composer self-update + +before_script: - composer install --prefer-dist --no-interaction script: