From 473dc91c146ded4052f55402f49eeddaf01dd50a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Tue, 15 Jan 2019 16:02:26 -0200 Subject: [PATCH] Filter Xdebug for PHPUnit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://phpunit.readthedocs.io/en/7.4/code-coverage-analysis.html#speeding-up-code-coverage-with-xdebug Signed-off-by: MaurĂ­cio Meneghini Fauth --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index c6b67569f5..428346a164 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,7 @@ install: - yarn install --non-interactive before_script: + - vendor/bin/phpunit --dump-xdebug-filter build/xdebug-filter.php - export TESTSUITE_PASSWORD=`openssl rand -base64 30` - export TESTSUITE_BROWSERSTACK_KEY=`echo cHlDcHJTNmZwZjVlaUR2RmV6VkU= | base64 --decode` - mysql -uroot -e "CREATE DATABASE IF NOT EXISTS test" @@ -21,7 +22,7 @@ before_script: script: - ./scripts/generate-mo --quiet - - ./vendor/bin/phpunit --configuration phpunit.xml.dist --exclude-group selenium + - vendor/bin/phpunit --prepend build/xdebug-filter.php --exclude-group selenium after_script: - if [ -f vendor/bin/codacycoverage ] ; then php vendor/bin/codacycoverage clover || true ; fi @@ -145,6 +146,7 @@ jobs: - TESTSUITE_USER=root - TESTSUITE_URL=http://127.0.0.1:8000 install: + - phpenv config-rm xdebug.ini - ./test/install-browserstack - composer install --no-interaction - yarn install --non-interactive