blob: 5469abfd753b4ce9165659b71847054a039567c6 [file] [log] [blame]
Victor Morales134f97a2017-08-08 16:08:19 -05001switch ($args[0])
2 {
3 "all_in_one" { $env:DEPLOY_MODE="all-in-one" }
4 { @("dns", "mr", "sdc", "aai", "mso", "robot", "vid", "sdnc", "portal", "dcae", "policy", "appc") -contains $_ } { $env:DEPLOY_MODE="individual" }
5 "testing"
6 {
7 $env:DEPLOY_MODE="testing"
8 $test_suite="*"
9 if (!$args[1]) { $test_suite=$args[1] }
10 $env:TEST_SUITE=$test_suite
11 $test_case="*"
12 if (!$args[2]) { $test_case=$args[2] }
13 $env:TEST_CASE=$test_case
14
Victor Morales20163062017-08-09 10:50:44 -050015 Remove-Item ./opt/ -Recurse -Force
16 Remove-Item $HOME/.m2/ -Recurse -Force
17 }
18 default
19 {
20 Write-Output $"Usage: $0 {all_in_one|dns|mr|sdc|aai|mso|robot|vid|sdnc|portal|dcae|policy|appc|testing}"
21 exit 1
Victor Morales134f97a2017-08-08 16:08:19 -050022 }
23 }
24
25vagrant destroy -f $args[0]
26vagrant up $args[0]