hobo/jenkins.sh

25 lines
611 B
Bash
Raw Permalink 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
./getlasso.sh
pip install --upgrade setuptools
pip install --upgrade pip
pip install --upgrade pylint pylint-django
2015-12-17 11:23:20 +01:00
pip install --upgrade tox
2015-10-05 18:05:45 +02:00
tox -r
2015-10-06 11:20:11 +02: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