Files
awslabs_aws-crt-php/dev-scripts/run_tests
T
2023-02-22 11:42:34 -08:00

20 lines
341 B
Bash
Executable File

#!/usr/bin/env bash
set -ex
launcher=
if command -v catchsegv; then
launcher=catchsegv
fi
if [ -z $PHP_BINARY ]; then
PHP_BINARY=$(which php)
fi
if [ ! -d vendor ]; then
COMPOSER_BINARY=$(which composer)
$PHP_BINARY -c php.ini $COMPOSER_BINARY update
fi
$launcher $PHP_BINARY -c php.ini vendor/bin/phpunit tests --debug