aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/lib/portal
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/portal
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/portal')
-rwxr-xr-xbootstrap/vagrant-onap/lib/portal26
1 files changed, 15 insertions, 11 deletions
diff --git a/bootstrap/vagrant-onap/lib/portal b/bootstrap/vagrant-onap/lib/portal
index 4dc5ef9b8..b5e768b2c 100755
--- a/bootstrap/vagrant-onap/lib/portal
+++ b/bootstrap/vagrant-onap/lib/portal
@@ -5,25 +5,29 @@ set -o xtrace
source /var/onap/functions
portal_src_folder=$git_src_folder/portal
-portal_repos=("sdk")
+portal_repos=("portal" "portal/sdk" "ecompsdkos" "ui/dmaapbc")
# clone_all_portal_repos() - Function that clones Portal source repo.
function clone_all_portal_repos {
- clone_repo portal $portal_src_folder
- clone_repo ecompsdkos $portal_src_folder/ecompsdkos
- clone_repo "ui/dmaapbc" $portal_src_folder/dmaapbc
-
- for dirc in ${portal_repos[@]}; do
- clone_repo portal/$dirc $portal_src_folder/$dirc
+ for repo in ${portal_repos[@]}; do
+ if [[ "$repo" == "ui/dmaapbc" ]];then
+ prefix="ui"
+ else
+ prefix="portal"
+ fi
+ clone_repo $repo $portal_src_folder/${repo#*$prefix}
done
}
# compile_all_portal_repos() - Function that compiles Portal source repo.
function compile_all_portal_repos {
- compile_src $portal_src_folder
-
- for dirc in ${portal_repos[@]}; do
- compile_src $portal_src_folder/$dirc
+ for repo in ${portal_repos[@]}; do
+ if [[ "$repo" == "ui/dmaapbc" ]];then
+ prefix="ui"
+ else
+ prefix="portal"
+ fi
+ compile_src $portal_src_folder/${repo#*$prefix}
done
}