aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/lib/sdc
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/sdc
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/sdc')
-rwxr-xr-xbootstrap/vagrant-onap/lib/sdc16
1 files changed, 7 insertions, 9 deletions
diff --git a/bootstrap/vagrant-onap/lib/sdc b/bootstrap/vagrant-onap/lib/sdc
index 1d21e138b..a21e2a418 100755
--- a/bootstrap/vagrant-onap/lib/sdc
+++ b/bootstrap/vagrant-onap/lib/sdc
@@ -5,7 +5,9 @@ set -o xtrace
source /var/onap/functions
sdc_src_folder=$git_src_folder/sdc
-sdc_repos=("jtosca" "sdc-distribution-client" "sdc-docker-base" "sdc-titan-cassandra" "sdc-tosca" "sdc-vnfdesign" "sdc-workflow-designer" "sdc_common")
+sdc_repos=("sdc" "sdc/jtosca" "sdc/sdc-distribution-client"
+"sdc/sdc-docker-base" "sdc/sdc-titan-cassandra" "sdc/sdc-tosca"
+"sdc/sdc-vnfdesign" "sdc/sdc-workflow-designer" "sdc/sdc_common")
# _mount_external_partition() - Create partition and mount the external volume
function _mount_external_partition {
@@ -47,19 +49,15 @@ EOL
# clone_all_sdc_repos() - Function that clones SDC source repo.
function clone_all_sdc_repos {
- clone_repo sdc $sdc_src_folder
-
- for dirc in ${sdc_repos[@]}; do
- clone_repo sdc/$dirc $sdc_src_folder/$dirc
+ for repo in ${sdc_repos[@]}; do
+ clone_repo $repo $sdc_src_folder${repo#*sdc}
done
}
# compile_all_sdc_repos() - Function that compiles SDC source repo.
function compile_all_sdc_repos {
- compile_src sdc $sdc_src_folder
-
- for dirc in ${sdc_repos[@]}; do
- compile_src $sdc_src_folder/$dirc
+ for repo in ${sdc_repos[@]}; do
+ compile_src $sdc_src_folder${repo#*sdc}
done
}