aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/tools/run.sh
blob: b9a4a43114e1631ca1ff099642d369b9052a5fbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

case $1 in
    "all_in_one" )
        export DEPLOY_MODE='all-in-one' ;;
    "dns" | "mr" | "sdc" | "aai" | "mso" | "robot" | "vid" | "sdnc" | "portal" | "dcae" | "policy" | "appc" )
        export DEPLOY_MODE='individual' ;;
    "testing" )
        export DEPLOY_MODE='testing'
        export TEST_SUITE=${2:-*}
        export TEST_CASE=${3:-*}

        rm -rf ../opt/
        rm -rf ~/.m2/;;
    * )
        echo $"Usage: $0 {all_in_one|dns|mr|sdc|aai|mso|robot|vid|sdnc|portal|dcae|policy|appc|testing}"
        exit 1
esac
vagrant destroy -f $1
vagrant up $1