mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 17:59:55 +02:00
18 lines
272 B
Bash
18 lines
272 B
Bash
#!/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 update
|
|
fi
|
|
|
|
$launcher $PHP_BINARY -c php.ini vendor/bin/phpunit tests --debug
|