summaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/lib/vid
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2017-10-20 13:18:26 -0700
committerVictor Morales <victor.morales@intel.com>2017-10-20 13:30:38 -0700
commit21404d790afd758160f0562859bf186821d55c70 (patch)
tree35d12acbc325c30d6a6b168e20e9fb96b5aafe87 /bootstrap/vagrant-onap/lib/vid
parent9f8434f582bbc87d0299d4b4d94c93e20b400a94 (diff)
Create a upstream repos validator
This Unit Test helps to validate the usage of the official repositrories and fails in case that a minimum are not used. Change-Id: Id5a922163a8a0d16de5460aee92e5cced3f285a3 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-Id: INT-289
Diffstat (limited to 'bootstrap/vagrant-onap/lib/vid')
-rwxr-xr-xbootstrap/vagrant-onap/lib/vid11
1 files changed, 7 insertions, 4 deletions
diff --git a/bootstrap/vagrant-onap/lib/vid b/bootstrap/vagrant-onap/lib/vid
index 83b530995..f99fd6042 100755
--- a/bootstrap/vagrant-onap/lib/vid
+++ b/bootstrap/vagrant-onap/lib/vid
@@ -5,17 +5,20 @@ set -o xtrace
source /var/onap/functions
vid_src_folder=$git_src_folder/vid
+vid_repos=("vid" "vid/asdcclient")
# clone_all_vid_repos() - Function that clones VID source code.
function clone_all_vid_repos {
- clone_repo vid $vid_src_folder
- clone_repo vid/asdcclient $vid_src_folder/asdcclient
+ for repo in ${vid_repos[@]}; do
+ clone_repo $repo $vid_src_folder${repo#*vid}
+ done
}
# compile_all_vid_repos() - Function that compiles VID source repo.
function compile_all_vid_repos {
- compile_src $vid_src_folder/asdcclient
- compile_src $vid_src_folder
+ for repo in ${vid_repos[@]}; do
+ compile_src $vid_src_folder${repo#*vid}
+ done
}
# _build_vid_images() - Function that builds VID docker images