Merge "[GENERAL] Add Andreas Geissler as committer."
[oom/offline-installer.git] / offline-installer-review.sh
index 69f438d..4a8934e 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/env bash
 #   COPYRIGHT NOTICE STARTS HERE
 #
-#   Copyright 2018-2020 © Samsung Electronics Co., Ltd.
+#   Copyright 2018-2021 © Samsung Electronics Co., Ltd.
 #
 #   Licensed under the Apache License, Version 2.0 (the "License");
 #   you may not use this file except in compliance with the License.
@@ -26,12 +26,11 @@ function prep_ubuntu_16_04_for_molecule() {
   sudo apt-get --assume-yes install software-properties-common
   sudo add-apt-repository  --yes  ppa:deadsnakes/ppa
   sudo apt update
-  sudo apt install --assume-yes python3.6
-  sudo apt install --assume-yes python3.6-venv
+  sudo apt install --assume-yes python3.8
+  sudo apt install --assume-yes python3.8-venv
 }
 
 function run_molecule() {
-  prep_ubuntu_16_04_for_molecule
   local roles=("$@")
   local MOLECULE_RC
   for role in ${roles[@]}
@@ -49,8 +48,11 @@ function run_molecule() {
 #######################################################################$
 #                           MAIN                                      #$
 #######################################################################$
+echo "----------   ONAP OFFLINE INSTALLER - CHANGE VERIFICATION START   ----------"
 FAILED_ROLES=()
 ALL_PLAYBOOKS=(`ls -d ansible/test/play-*`) # enumerate all playbook tests for later usage
+# Setup environment
+prep_ubuntu_16_04_for_molecule > ubuntu_preparation.log
 
 # Check for changes in Ansible roles
 ROLE_CHANGES=(`git diff HEAD^ HEAD --name-only ansible/roles | cut -f 1-3 -d "/" | sort -u`)
@@ -134,3 +136,4 @@ else
   echo "Verification failed for ${FAILED_ROLES[*]}"
   exit 1
 fi
+echo "----------   ONAP OFFLINE INSTALLER - CHANGE VERIFICATION END   ----------"