BOM-1404 Updated tox settings (#23439)
Issue: https://openedx.atlassian.net/browse/BOM-1404 * Fixed Django 2.x installation process in tox * Updated xdist worker Django installation code * Use correct tox environment variable name Co-authored-by: Jeremy Bowman <jbowman@edx.org>
This commit is contained in:
@@ -11,10 +11,14 @@ python scripts/xdist/pytest_worker_manager.py -a up -n ${XDIST_NUM_WORKERS} \
|
||||
-iam ${XDIST_WORKER_IAM_PROFILE_ARN}
|
||||
|
||||
# Install the correct version of Django depending on which tox environment (if any) is in use
|
||||
if [[ -z ${TOX_ENV+x} ]] || [[ ${TOX_ENV} == 'null' ]]; then
|
||||
if [[ -z ${TOXENV+x} ]] || [[ ${TOXENV} == 'null' ]]; then
|
||||
DJANGO_REQUIREMENT="-r requirements/edx/django.txt"
|
||||
else
|
||||
DJANGO_REQUIREMENT=$(pip freeze | grep "^[Dd]jango==")
|
||||
elif [[ ${TOXENV} == *'django20'* ]]; then
|
||||
DJANGO_REQUIREMENT="-r requirements/edx/django20.txt"
|
||||
elif [[ ${TOXENV} == *'django21'* ]]; then
|
||||
DJANGO_REQUIREMENT="-r requirements/edx/django21.txt"
|
||||
elif [[ ${TOXENV} == *'django22'* ]]; then
|
||||
DJANGO_REQUIREMENT="-r requirements/edx/django22.txt"
|
||||
fi
|
||||
|
||||
ip_list=$(<pytest_worker_ips.txt)
|
||||
|
||||
Reference in New Issue
Block a user