jenkins: run tests with django 1.11 (#333475)
This commit is contained in:
parent
7af971995c
commit
9587e4dba9
|
@ -27,9 +27,12 @@ $PIP_BIN install --upgrade setuptools
|
|||
$PIP_BIN install --upgrade 'pytest<4.1' WebTest mock pytest-cov pyquery pytest-django
|
||||
$PIP_BIN install --upgrade 'pylint<1.8' # 1.8 broken (cf build #3023)
|
||||
$PIP_BIN install git+https://git.entrouvert.org/debian/django-ckeditor.git
|
||||
$PIP_BIN install --upgrade 'Django>=1.8,<1.9' 'gadjo' 'pyproj'
|
||||
$PIP_BIN install --upgrade 'Django<1.12' 'gadjo' 'pyproj'
|
||||
|
||||
LC_ALL=C LC_TIME=C LANG=C PYTHONPATH=$(pwd):$PYTHONPATH venv/bin/py.test --junitxml=test_results.xml --cov-report xml --cov-report html --cov=wcs/ --cov-config .coveragerc -v tests/
|
||||
DJANGO_SETTINGS_MODULE=wcs.settings \
|
||||
WCS_SETTINGS_FILE=tests/settings.py \
|
||||
LC_ALL=C LC_TIME=C LANG=C \
|
||||
PYTHONPATH=$(pwd):$PYTHONPATH venv/bin/py.test --junitxml=test_results.xml --cov-report xml --cov-report html --cov=wcs/ --cov-config .coveragerc -v tests/
|
||||
test -f pylint.out && cp pylint.out pylint.out.prev
|
||||
(venv/bin/pylint -f parseable --rcfile /var/lib/jenkins/pylint.wcs.rc wcs | tee pylint.out) || /bin/true
|
||||
test -f pylint.out.prev && (diff pylint.out.prev pylint.out | grep '^[><]' | grep .py) || /bin/true
|
||||
|
|
Loading…
Reference in New Issue