-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.ps1
More file actions
executable file
·28 lines (22 loc) · 888 Bytes
/
run.ps1
File metadata and controls
executable file
·28 lines (22 loc) · 888 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/pwsh
param (
[switch] $AsService,
[switch] $Debug,
[switch] $NoConfigurationValidation
)
$allConfigurationsValid = $NoConfigurationValidation -or (& (Join-Path '.' 'config' 'test-all.ps1') -Debug:$Debug -PassThru)
if (!$allConfigurationsValid) {
exit
}
. (Join-Path '.' 'utils' 'script-executor.ps1')
$commonArgs = @('-NoConfigurationValidation')
if ($Debug) {
$commonArgs += '-Debug'
}
$clientArgs = $Debug ? @() : @('-NonInteractive')
$executor = $AsService ? [ServiceScriptExecutor]::new() : $Debug -and $IsWindows ? [ExternalScriptExecutor]::new() : [ParallelScriptExecutor]::new()
$executor.Execute(@(
@{Script = 'run.ps1'; WD = 'client'; ArgumentList = $commonArgs + $clientArgs },
@{Script = 'run.ps1'; WD = 'proxy'; ArgumentList = $commonArgs },
@{Script = 'run.ps1'; WD = 'server'; ArgumentList = $commonArgs }
))