mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 16:33:08 -06:00
DCD-386: Initial test of pipenv.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user