2015-10-05 18:05:45 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2015-11-12 12:59:48 +01:00
|
|
|
set -e # prevent hiding of errors
|
|
|
|
|
2015-10-05 18:05:45 +02:00
|
|
|
rm -f *coverage.xml
|
|
|
|
rm -f *test_results.xml
|
2019-01-17 09:30:53 +01:00
|
|
|
rm -rf htmlcov htmlcov-*
|
2015-10-05 18:05:45 +02:00
|
|
|
|
2019-01-16 10:56:16 +01:00
|
|
|
virtualenv venv
|
|
|
|
venv/bin/pip install --upgrade setuptools
|
|
|
|
venv/bin/pip install --upgrade pip
|
|
|
|
venv/bin/pip install --upgrade pylint pylint-django
|
|
|
|
venv/bin/pip install --upgrade tox
|
2015-10-05 18:05:45 +02:00
|
|
|
|
2019-01-16 10:56:16 +01:00
|
|
|
venv/bin/tox -rv
|
2015-10-06 11:20:11 +02:00
|
|
|
|
2019-01-16 10:56:16 +01:00
|
|
|
# ./merge-junit-results.py junit-*.xml >test_results.xml
|
|
|
|
#./merge-coverage.py -o coverage.xml coverage-*.xml
|
2015-10-05 18:05:45 +02:00
|
|
|
|
2015-10-06 11:20:11 +02:00
|
|
|
|
2015-10-05 18:05:45 +02:00
|
|
|
test -f pylint.out && cp pylint.out pylint.out.prev
|
|
|
|
(pylint -f parseable --rcfile /var/lib/jenkins/pylint.django.rc hobo | tee pylint.out) || /bin/true
|
|
|
|
test -f pylint.out.prev && (diff pylint.out.prev pylint.out | grep '^[><]' | grep .py) || /bin/true
|
2015-11-12 12:59:48 +01:00
|
|
|
|
|
|
|
echo OK
|