#!/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.
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[@]}
#######################################################################$
# 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`)
echo "Verification failed for ${FAILED_ROLES[*]}"
exit 1
fi
+echo "---------- ONAP OFFLINE INSTALLER - CHANGE VERIFICATION END ----------"