Add PHPUnit call fallback for 5.2 specifically
This commit is contained in:
parent
506b1cec55
commit
0a1eb076ea
|
@ -36,13 +36,13 @@ matrix:
|
|||
php: 7.2
|
||||
env: WP_VERSION=latest WP_MULTISITE=0 RUN_E2E=1
|
||||
- name: "Unit tests code coverage"
|
||||
php: 7.1
|
||||
php: 7.3
|
||||
env: WP_VERSION=latest WP_MULTISITE=0 RUN_CODE_COVERAGE=1
|
||||
- name: "WooCommerce unit tests using WordPress nightly"
|
||||
php: 7.3
|
||||
env: WP_VERSION=nightly WP_MULTISITE=0
|
||||
allow_failures:
|
||||
- php: 7.1
|
||||
- php: 7.3
|
||||
env: WP_VERSION=latest WP_MULTISITE=0 RUN_CODE_COVERAGE=1
|
||||
|
||||
before_script:
|
||||
|
|
|
@ -6,6 +6,8 @@ fi
|
|||
|
||||
if [[ ${RUN_CODE_COVERAGE} == 1 ]]; then
|
||||
phpdbg -qrr $HOME/.composer/vendor/phpunit/phpunit/phpunit -d memory_limit=-1 -c phpunit.xml --coverage-clover=coverage.clover --exclude-group=timeout
|
||||
else if [[ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]]; then
|
||||
$HOME/.composer/vendor/phpunit/phpunit/phpunit -c phpunit.xml
|
||||
else
|
||||
phpunit -c phpunit.xml
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue