summaryrefslogtreecommitdiffstats
path: root/jenkins.sh
blob: ad8f3fdab21066d355fb60e3f7aa0bc5620a0d79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

set -e

pip install --upgrade setuptools pip
pip install --upgrade pylint pylint-django tox

./getlasso.sh
tox -r

/usr/local/bin/merge-coverage.py -o coverage.xml coverage-*.xml
/usr/local/bin/merge-junit-results.py junit-*.xml >junit.xml
test -f pylint.out && cp pylint.out pylint.out.prev
(pylint -f parseable --rcfile /var/lib/jenkins/pylint.django.rc mellon | tee pylint.out) ||
	/bin/true
test -f pylint.out.prev && (diff pylint.out.prev pylint.out | grep '^[><]' | grep .py) || /bin/true