woocommerce/tests/bin/phpunit.sh

12 lines
302 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
phpdbg -qrr -d memory_limit=-1 $HOME/.composer/vendor/bin/phpunit -c phpunit.xml --coverage-clover=coverage.clover --exclude-group=timeout
2017-10-05 16:09:39 +00:00
else
2018-02-27 17:24:40 +00:00
phpunit -c phpunit.xml
2017-10-05 16:09:39 +00:00
fi