diff --git a/jenkins.sh b/jenkins.sh new file mode 100644 index 0000000..7f28706 --- /dev/null +++ b/jenkins.sh @@ -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 diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..e1f6a26 --- /dev/null +++ b/tox.ini @@ -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