From 0a1eb076ea8922947d835c7251e40dd047934ebb Mon Sep 17 00:00:00 2001 From: Gerhard Date: Tue, 19 Mar 2019 15:23:36 +0200 Subject: [PATCH] Add PHPUnit call fallback for 5.2 specifically --- .travis.yml | 4 ++-- tests/bin/phpunit.sh | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0d2545211fd..1f197b37f5a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: diff --git a/tests/bin/phpunit.sh b/tests/bin/phpunit.sh index d81e59b3123..87f197b458f 100755 --- a/tests/bin/phpunit.sh +++ b/tests/bin/phpunit.sh @@ -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