1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-08-02 20:24:45 +02:00
haze/nix/image/scripts/tests

17 lines
463 B
Text
Executable file

#!/bin/nu
def --wrapped main [...rest] {
cd $env.WEBROOT
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
}