Projet

Général

Profil

0001-jenkins-run-tests-with-django-1.11-333475.patch

Emmanuel Cazenave, 28 mai 2019 14:12

Télécharger (1,5 ko)

Voir les différences:

Subject: [PATCH] jenkins: run tests with django 1.11 (#333475)

 jenkins.sh | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
jenkins.sh
27 27
$PIP_BIN install --upgrade 'pytest<4.1' WebTest mock pytest-cov pyquery pytest-django
28 28
$PIP_BIN install --upgrade 'pylint<1.8' # 1.8 broken (cf build #3023)
29 29
$PIP_BIN install git+https://git.entrouvert.org/debian/django-ckeditor.git
30
$PIP_BIN install --upgrade 'Django>=1.8,<1.9' 'gadjo' 'pyproj'
30
$PIP_BIN install --upgrade 'Django<1.12' 'gadjo' 'pyproj'
31 31

  
32
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/
32
DJANGO_SETTINGS_MODULE=wcs.settings \
33
WCS_SETTINGS_FILE=tests/settings.py \
34
LC_ALL=C LC_TIME=C LANG=C \
35
PYTHONPATH=$(pwd):$PYTHONPATH venv/bin/py.test --junitxml=test_results.xml --cov-report xml --cov-report html --cov=wcs/ --cov-config .coveragerc -v tests/
33 36
test -f pylint.out && cp pylint.out pylint.out.prev
34 37
(venv/bin/pylint -f parseable --rcfile /var/lib/jenkins/pylint.wcs.rc wcs | tee pylint.out) || /bin/true
35 38
test -f pylint.out.prev && (diff pylint.out.prev pylint.out | grep '^[><]' | grep .py) || /bin/true
36
-