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

set -e

rm -f coverage.xml
rm -f test_results.xml

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

tox -r

./merge-junit-results.py junit-*.xml >junit.xml
./merge-coverage.py -o coverage.xml coverage-*.xml

pip install -r requirements.txt # install dependencies, for better pylint results
test -f pylint.out && cp pylint.out pylint.out.prev
(pylint -f parseable --rcfile /var/lib/jenkins/pylint.django.rc fargo | tee pylint.out) || /bin/true
test -f pylint.out.prev && (diff pylint.out.prev pylint.out | grep '^[><]' | grep .py) || /bin/true