hobo/jenkins.sh

26 lines
687 B
Bash
Raw Normal View History

2015-10-05 18:05:45 +02:00
#!/bin/sh
set -e # prevent hiding of errors
2015-10-05 18:05:45 +02:00
rm -f *coverage.xml
rm -f *test_results.xml
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
echo OK