Run self update in script to avoid breaking tests on 5.2
This commit is contained in:
parent
6126e248b6
commit
d63d062470
|
@ -21,9 +21,6 @@ matrix:
|
||||||
- php: 5.6
|
- php: 5.6
|
||||||
env: WP_VERSION=latest WP_MULTISITE=1
|
env: WP_VERSION=latest WP_MULTISITE=1
|
||||||
|
|
||||||
before_install:
|
|
||||||
- composer self-update
|
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- bash tests/bin/install.sh woocommerce_test root '' localhost $WP_VERSION
|
- bash tests/bin/install.sh woocommerce_test root '' localhost $WP_VERSION
|
||||||
- bash tests/bin/travis.sh before
|
- bash tests/bin/travis.sh before
|
||||||
|
|
|
@ -6,6 +6,8 @@ if [ $1 == 'before' ]; then
|
||||||
# composer install fails in PHP 5.2
|
# composer install fails in PHP 5.2
|
||||||
[ $TRAVIS_PHP_VERSION == '5.2' ] && exit;
|
[ $TRAVIS_PHP_VERSION == '5.2' ] && exit;
|
||||||
|
|
||||||
|
composer self-update
|
||||||
|
|
||||||
# install php-coveralls to send coverage info
|
# install php-coveralls to send coverage info
|
||||||
composer init --require=satooshi/php-coveralls:0.7.0 -n
|
composer init --require=satooshi/php-coveralls:0.7.0 -n
|
||||||
composer install --no-interaction
|
composer install --no-interaction
|
||||||
|
|
Loading…
Reference in New Issue