From ca59f278dacff38ddd2799d6f8f2d8bd7d9f4302 Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Sat, 12 Apr 2014 06:02:02 +0200 Subject: [PATCH] Update composer before using it. Fixes openssl for https error. --- .travis.yml | 2 +- travis/setup-composer.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100755 travis/setup-composer.sh diff --git a/.travis.yml b/.travis.yml index b6367b38..822dae91 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,7 +18,7 @@ env: before_script: - travis/setup-secure-shell.sh - sh -c "if [ '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then travis/install-php-extensions.sh; fi" - - sh -c "if [ '$TRAVIS_PHP_VERSION' != '5.2' ]; then composer install --dev --no-interaction; fi" + - sh -c "if [ '$TRAVIS_PHP_VERSION' != '5.2' ]; then travis/setup-composer.sh; fi" script: - sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.5' ]; then vendor/bin/phpcs -s --extensions=php --standard=build/code-sniffer-ruleset.xml phpseclib/; fi" diff --git a/travis/setup-composer.sh b/travis/setup-composer.sh new file mode 100755 index 00000000..3416074c --- /dev/null +++ b/travis/setup-composer.sh @@ -0,0 +1,3 @@ +#!/bin/sh +composer self-update --no-interaction +composer install --no-interaction