26 lines
687 B
Bash
Executable File
26 lines
687 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e # prevent hiding of errors
|
|
|
|
rm -f *coverage.xml
|
|
rm -f *test_results.xml
|
|
rm -rf htmlcov htmlcov-*
|
|
|
|
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
|
|
|
|
venv/bin/tox -rv
|
|
|
|
# ./merge-junit-results.py junit-*.xml >test_results.xml
|
|
#./merge-coverage.py -o coverage.xml coverage-*.xml
|
|
|
|
|
|
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
|
|
|
|
echo OK
|