1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/runner/injector/virtualenv.sh

9 lines
326 B
Bash
Raw Normal View History

#!/usr/bin/env bash
# Create and activate a fresh virtual environment with `source virtualenv.sh`.
rm -rf "${OUTPUT_DIR}/venv"
"${ANSIBLE_TEST_PYTHON_INTERPRETER}" -m virtualenv --system-site-packages --python "${ANSIBLE_TEST_PYTHON_INTERPRETER}" "${OUTPUT_DIR}/venv"
2019-03-27 18:49:54 +01:00
set +ux
source "${OUTPUT_DIR}/venv/bin/activate"
set -ux