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
|
|
|
|
|
2015-12-17 14:52:57 +01:00
|
|
|
./getlasso.sh
|
2015-11-02 15:46:00 +01:00
|
|
|
pip install --upgrade setuptools
|
2017-03-22 23:34:26 +01:00
|
|
|
pip install --upgrade pip
|
2016-03-28 19:55:01 +02:00
|
|
|
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
|
|
|
|
2017-03-22 23:34:26 +01:00
|
|
|
tox -r
|
2015-10-06 11:20:11 +02:00
|
|
|
|
2016-03-16 14:03:59 +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
|