3 # COPYRIGHT NOTICE STARTS HERE
5 # Copyright 2019-2021 © Samsung Electronics Co., Ltd.
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
19 # COPYRIGHT NOTICE ENDS HERE
25 # - dev tools (libssl-dev in particular)
28 # Example install in Ubuntu 18.04
29 # sudo apt install -y python3-pip
30 # sudo apt install build-essential libssl-dev libffi-dev python3-dev
31 # sudo apt install -y python3-venv
33 VENV_PATH=${VENV_PATH:-~/molecule_venv}
36 python3.8 -m venv ${VENV_PATH}
38 # Activate virtual env
39 source ${VENV_PATH}/bin/activate
42 if [ ! -z ${VIRTUAL_ENV} ]; then
43 echo "Activated virtual env in ${VIRTUAL_ENV}"
45 pip -q install ansible-lint==5.4.0 molecule==3.3.0 Jinja2==2.11.3 ansible-base==2.10.8 ansible==3.2.0 docker molecule-docker==0.2.4 pytest-testinfra yamllint flake8 markupsafe==2.0.1