DCD-386: Initial test of pipenv.

This commit is contained in:
Steve Smith
2019-06-13 13:57:56 +10:00
parent c1d60bc294
commit cda21df138
6 changed files with 231 additions and 18 deletions

View File

@@ -14,8 +14,4 @@ source $ENV_FILE
set +a
# Use Ansible from virtualenv if provided
if [[ -f .venv/bin/ansible ]]; then
source .venv/bin/activate
fi
ansible-playbook -v -i $INV $PLAYBOOK 2>&1 | tee --append $LOG_FILE
pipenv run ansible-playbook -v -i $INV $PLAYBOOK 2>&1 | tee --append $LOG_FILE

View File

@@ -5,8 +5,6 @@ set -e
# The Amazon Linux 2 Ansible package is 2.4, which has issue
# interacting with RDS, so use the PIP version.
virtualenv --system-site-packages .venv
source .venv/bin/activate
pip install -U setuptools
pip install ansible==2.7.10
pip list --format columns
pip install pipenv
pipenv install

View File

@@ -3,13 +3,10 @@
set -e
# Use Ansible from virtualenv if provided
if [[ -f .venv/bin/ansible ]]; then
source .venv/bin/activate
pip install molecule docker six
fi
pipenv install molecule docker six
for role in `find roles/ -name molecule | sort`; do
pushd `dirname $role`
molecule test --all
pipenv run molecule test --all
popd
done