summaryrefslogtreecommitdiffstats
path: root/jenkins.sh
blob: 329193688511675f088c456e4d1874e719383439 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

set -e # prevent hiding of errors

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
pip install --upgrade tox

tox -r

./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