fargo/jenkins.sh

21 lines
612 B
Bash
Raw Normal View History

2015-04-29 15:52:04 +02:00
#!/bin/sh
set -e
2015-08-18 17:27:19 +02:00
rm -f coverage.xml
rm -f test_results.xml
2017-03-22 23:52:33 +01:00
pip install --upgrade setuptools
pip install --upgrade pip
pip install --upgrade tox pylint pylint-django
2015-08-18 17:27:19 +02:00
2017-03-22 23:52:33 +01:00
tox -r
2015-08-18 17:27:19 +02:00
./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
2015-08-18 17:27:19 +02:00
test -f pylint.out && cp pylint.out pylint.out.prev
2015-04-29 15:52:04 +02:00
(pylint -f parseable --rcfile /var/lib/jenkins/pylint.django.rc fargo | tee pylint.out) || /bin/true
2015-08-18 17:27:19 +02:00
test -f pylint.out.prev && (diff pylint.out.prev pylint.out | grep '^[><]' | grep .py) || /bin/true