mirror of
https://codeberg.org/icewind/haze.git
synced 2026-08-02 12:14:46 +02:00
make it easier to use a specific phpunit version
This commit is contained in:
parent
44da124f75
commit
d59b99211a
5 changed files with 27 additions and 12 deletions
|
|
@ -3,5 +3,15 @@
|
|||
def --wrapped main [...rest] {
|
||||
cd $env.WEBROOT
|
||||
|
||||
XDEBUG_SESSION=haze phpunit --configuration $"($env.WEBROOT)/tests/phpunit-autotest.xml" ...$rest
|
||||
mut args = $rest;
|
||||
mut command = "phpunit";
|
||||
if (($args | first | detect type | describe) == "int") {
|
||||
let phpunit_version = $rest | first
|
||||
$command = $"phpunit($phpunit_version)"
|
||||
$args = $args | skip 1
|
||||
}
|
||||
|
||||
let command = $command
|
||||
let args = $args
|
||||
XDEBUG_SESSION=haze exec $command --configuration $"($env.WEBROOT)/tests/phpunit-autotest.xml" ...$args
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue