Victor Morales | 134f97a | 2017-08-08 16:08:19 -0500 | [diff] [blame] | 1 | switch ($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 Morales | 2016306 | 2017-08-09 10:50:44 -0500 | [diff] [blame] | 15 | 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 Morales | 134f97a | 2017-08-08 16:08:19 -0500 | [diff] [blame] | 22 | } |
| 23 | } |
| 24 | |
| 25 | vagrant destroy -f $args[0] |
| 26 | vagrant up $args[0] |