fix: update quality checks for django 3.2 (#28958)
This commit is contained in:
committed by
GitHub
parent
47b56b8417
commit
e2dc24af3a
@@ -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']
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user