mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-28 02:41:37 +01:00
13 lines
324 B
Bash
13 lines
324 B
Bash
|
|
#!/bin/sh
|
||
|
|
composer update
|
||
|
|
|
||
|
|
php -r 'echo "\nPHP version " . phpversion() . ". ";';
|
||
|
|
|
||
|
|
if [ -z $1 ];
|
||
|
|
then
|
||
|
|
echo "Running all unit tests.\n"
|
||
|
|
php ./vendor/phpunit/phpunit/phpunit tests
|
||
|
|
else
|
||
|
|
echo "Running all unit tests, except tests marked with @group $1.\n"
|
||
|
|
php ./vendor/phpunit/phpunit/phpunit --exclude-group $1 tests
|
||
|
|
fi
|