summaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/lib/appc
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/appc
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/appc')
-rwxr-xr-xbootstrap/vagrant-onap/lib/appc11
1 files changed, 7 insertions, 4 deletions
diff --git a/bootstrap/vagrant-onap/lib/appc b/bootstrap/vagrant-onap/lib/appc
index 5e3858f16..4d93f54e5 100755
--- a/bootstrap/vagrant-onap/lib/appc
+++ b/bootstrap/vagrant-onap/lib/appc
@@ -6,17 +6,20 @@ source /var/onap/sdnc
source /var/onap/functions
appc_src_folder=$git_src_folder/appc
+appc_repos=("appc" "appc/deployment")
# clone_all_appc_repos() - Function that clones APPC source repo.
function clone_all_appc_repos {
- clone_repo appc $appc_src_folder
- clone_repo appc/deployment $appc_src_folder/deployment
+ for repo in ${appc_repos[@]}; do
+ clone_repo $repo $appc_src_folder${repo#*appc}
+ done
}
# compile_all_appc_repos() - Function that compiles APPC source repo.
function compile_all_appc_repos {
- compile_src $appc_src_folder
- compile_src $appc_src_folder/deployment
+ for repo in ${appc_repos[@]}; do
+ compile_src $appc_src_folder${repo#*appc}
+ done
}
# _build_appc_images() - Function that creates APPC images from source code.