blob: 5469abfd753b4ce9165659b71847054a039567c6 (
plain)
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
|
switch ($args[0])
{
"all_in_one" { $env:DEPLOY_MODE="all-in-one" }
{ @("dns", "mr", "sdc", "aai", "mso", "robot", "vid", "sdnc", "portal", "dcae", "policy", "appc") -contains $_ } { $env:DEPLOY_MODE="individual" }
"testing"
{
$env:DEPLOY_MODE="testing"
$test_suite="*"
if (!$args[1]) { $test_suite=$args[1] }
$env:TEST_SUITE=$test_suite
$test_case="*"
if (!$args[2]) { $test_case=$args[2] }
$env:TEST_CASE=$test_case
Remove-Item ./opt/ -Recurse -Force
Remove-Item $HOME/.m2/ -Recurse -Force
}
default
{
Write-Output $"Usage: $0 {all_in_one|dns|mr|sdc|aai|mso|robot|vid|sdnc|portal|dcae|policy|appc|testing}"
exit 1
}
}
vagrant destroy -f $args[0]
vagrant up $args[0]
|