--- check: phpunit --version | grep -iE '^PHPUnit\s[0-9][.0-9]+' || (phpunit --version; false) all: type: custom command: | if [ -n "${PHP_UNIT_VERSION}" ]; then \ PHP_UNIT_URL="https://phar.phpunit.de/phpunit-${PHP_UNIT_VERSION}.phar"; \ else \ PHP_UNIT_URL="https://phar.phpunit.de/phpunit.phar"; \ fi \ && curl -sS -L --fail "${PHP_UNIT_URL}" -L -o /usr/local/bin/phpunit \ build_dep: [] run_dep: [] pre: PHP_UNIT_VERSION="" post: chmod +x /usr/local/bin/phpunit 7.2: type: custom pre: PHP_UNIT_VERSION="8" 7.1: type: custom pre: PHP_UNIT_VERSION="7" 7.0: type: custom pre: PHP_UNIT_VERSION="6" 5.6: type: custom pre: PHP_UNIT_VERSION="5" 5.5: type: custom pre: PHP_UNIT_VERSION="4" 5.4: type: custom pre: PHP_UNIT_VERSION="4" 5.3: type: custom pre: PHP_UNIT_VERSION="4"