Run self update in script to avoid breaking tests on 5.2

This commit is contained in:
Mike Jolley 2016-03-23 10:46:35 +00:00
parent 6126e248b6
commit d63d062470
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -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