restructure

This commit is contained in:
Dengke Tang
2023-02-22 11:42:34 -08:00
parent 9ff650e6d9
commit 9de07efb76
13 changed files with 81 additions and 13 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/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