#!/bin/bash set -e echo "Spinning up xdist containers with pytest_container_manager.py" python scripts/xdist/pytest_container_manager.py -a up -n ${XDIST_NUM_TASKS} \ -t ${XDIST_CONTAINER_TASK_NAME} \ -s ${XDIST_CONTAINER_SUBNET} \ -sg ${XDIST_CONTAINER_SECURITY_GROUP} # Need to map remote branch to local branch when fetching a branch other than master if [ "$XDIST_GIT_BRANCH" == "master" ]; then XDIST_GIT_FETCH_STRING="$XDIST_GIT_BRANCH" else XDIST_GIT_FETCH_STRING="$XDIST_GIT_BRANCH:$XDIST_GIT_BRANCH" fi # 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 DJANGO_REQUIREMENT="-r requirements/edx/django.txt" else DJANGO_REQUIREMENT=$(pip freeze | grep "^[Dd]jango==") fi ip_list=$(