From d63d06247020327e9b4df06678b1d495e13f7781 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Wed, 23 Mar 2016 10:46:35 +0000 Subject: [PATCH] Run self update in script to avoid breaking tests on 5.2 --- .travis.yml | 3 --- tests/bin/travis.sh | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index e1ed59d2a26..e20a2bc82c8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,9 +21,6 @@ matrix: - php: 5.6 env: WP_VERSION=latest WP_MULTISITE=1 -before_install: - - composer self-update - before_script: - bash tests/bin/install.sh woocommerce_test root '' localhost $WP_VERSION - bash tests/bin/travis.sh before diff --git a/tests/bin/travis.sh b/tests/bin/travis.sh index c1e72432f7d..974c7e7e3ee 100644 --- a/tests/bin/travis.sh +++ b/tests/bin/travis.sh @@ -6,6 +6,8 @@ if [ $1 == 'before' ]; then # composer install fails in PHP 5.2 [ $TRAVIS_PHP_VERSION == '5.2' ] && exit; + composer self-update + # install php-coveralls to send coverage info composer init --require=satooshi/php-coveralls:0.7.0 -n composer install --no-interaction