woocommerce/tests/bin/phpunit.sh

9 lines
303 B
Bash
Raw Normal View History

2017-03-14 12:50:54 +00:00
composer require phpunit/phpunit:5.6
composer install
if [[ ${TRAVIS_BRANCH} == 'master' ]] && [[ ${TRAVIS_EVENT_TYPE} != 'pull_request' ]] && [[ ${TRAVIS_PHP_VERSION} == ${PHP_LATEST_STABLE} ]]; then
phpunit -c phpunit.xml.dist --coverage-clover ./tmp/clover.xml
else
phpunit -c phpunit.xml.dist
fi