woocommerce/tests/bin/phpunit.sh

14 lines
432 B
Bash
Raw Normal View History

2017-10-05 16:09:39 +00:00
#!/usr/bin/env bash
if [[ ${RUN_PHPCS} == 1 ]] || [[ ${RUN_E2E} == 1 ]]; then
exit
fi
if [[ ${RUN_CODE_COVERAGE} == 1 ]]; then
2019-03-19 11:47:26 +00:00
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
2017-10-05 16:09:39 +00:00
else
phpunit -c phpunit.xml
2017-10-05 16:09:39 +00:00
fi