add continuous integration scripts

This commit is contained in:
Benjamin Dauvergne 2015-07-16 14:28:39 +02:00
parent 68ddd8c456
commit 96f987ecb3
2 changed files with 22 additions and 0 deletions

9
jenkins.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/sh
set -e
pip install --upgrade pip
pip install --upgrade pylint==1.4.0 astroid==1.3.2
pip install --upgrade tox
(pylint -f parseable --rcfile /var/lib/jenkins/pylint.django.rc src/authentic2/ | tee pylint.out) || /bin/true
tox -r

13
tox.ini Normal file
View File

@ -0,0 +1,13 @@
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[testenv]
# django.contrib.auth is not tested it does not work with our templates
commands =
coverage erase
coverage run --source=. -a ./setup.py test
coverage xml
usedevelop = True
deps = coverage