fix: update quality checks for django 3.2 (#28958)

This commit is contained in:
Muhammad Soban Javed
2021-10-06 23:44:48 +05:00
committed by GitHub
parent 47b56b8417
commit e2dc24af3a
3 changed files with 11 additions and 3 deletions

View File

@@ -23,8 +23,11 @@ COVERAGE_REQ_FILE = 'requirements/edx/coverage.txt'
# If you make any changes to this list you also need to make
# a corresponding change to circle.yml, which is how the python
# prerequisites are installed for builds on circleci.com
if 'TOXENV' in os.environ:
toxenv = os.environ.get('TOXENV')
if toxenv and toxenv != 'quality-django32':
PYTHON_REQ_FILES = ['requirements/edx/testing.txt']
elif toxenv and toxenv == 'quality-django32':
PYTHON_REQ_FILES = ['requirements/edx/testing.txt', 'requirements/edx/django32.txt']
else:
PYTHON_REQ_FILES = ['requirements/edx/development.txt']

View File

@@ -68,9 +68,14 @@ END
# if specified tox environment is supported, prepend paver commands
# with tox env invocation
if [ -z ${TOX_ENV+x} ] || [[ ${TOX_ENV} == 'null' ]]; then
echo "TOX_ENV: ${TOX_ENV}"
TOX=""
elif tox -l |grep -q "${TOX_ENV}"; then
TOX="tox -r -e ${TOX_ENV} --"
if [[ "${TOX_ENV}" == 'quality-django32' ]]; then
TOX=""
else
TOX="tox -r -e ${TOX_ENV} --"
fi
else
echo "${TOX_ENV} is not currently supported. Please review the"
echo "tox.ini file to see which environments are supported"

View File

@@ -1,5 +1,5 @@
[tox]
envlist = py38-django{22,30,31,32}
envlist = py38-django{22,30,31,32}, quality-django{32}
# This is needed to prevent the lms, cms, and openedx packages inside the "Open
# edX" package (defined in setup.py) from getting installed into site-packages