mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
459 B
Bash
13 lines
459 B
Bash
6 years ago
|
#!/usr/bin/env bash
|
||
|
# Create and activate a fresh virtual environment with `source virtualenv-isolated.sh`.
|
||
|
|
||
|
rm -rf "${OUTPUT_DIR}/venv"
|
||
|
"${ANSIBLE_TEST_PYTHON_INTERPRETER}" -m virtualenv --python "${ANSIBLE_TEST_PYTHON_INTERPRETER}" "${OUTPUT_DIR}/venv"
|
||
|
set +ux
|
||
|
source "${OUTPUT_DIR}/venv/bin/activate"
|
||
|
set -ux
|
||
|
|
||
|
if [[ "${ANSIBLE_TEST_COVERAGE}" ]]; then
|
||
|
pip install coverage -c ../../../runner/requirements/constraints.txt --disable-pip-version-check
|
||
|
fi
|