2017-10-05 16:09:39 +00:00
|
|
|
#!/usr/bin/env bash
|
2018-12-05 18:00:05 +00:00
|
|
|
|
2019-07-25 11:12:24 +00:00
|
|
|
if [[ ${RUN_PHPCS} == 1 ]] || [[ ${RUN_E2E} == 1 ]] || [[ ${RUN_VIS_REGRESSION} == 1 ]]; then
|
2018-12-05 18:00:05 +00:00
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
2017-11-13 17:53:42 +00:00
|
|
|
if [[ ${RUN_CODE_COVERAGE} == 1 ]]; then
|
2019-04-10 22:01:44 +00:00
|
|
|
phpdbg -qrr $HOME/.composer/vendor/bin/phpunit -d memory_limit=-1 -c phpunit.xml --coverage-clover=coverage.clover --exclude-group=timeout $@
|
2017-10-05 16:09:39 +00:00
|
|
|
else
|
2019-07-19 02:01:14 +00:00
|
|
|
$HOME/.composer/vendor/bin/phpunit -c phpunit.xml $@
|
2017-10-05 16:09:39 +00:00
|
|
|
fi
|