add a jenkins.sh

This commit is contained in:
Benjamin Dauvergne 2017-03-22 23:54:10 +01:00
parent 83388d396c
commit 1d3efc23be
1 changed files with 16 additions and 0 deletions

16
jenkins.sh Executable file
View File

@ -0,0 +1,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