From 96f987ecb38bbe8eae8ca69ae5b63c3d4e488588 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Thu, 16 Jul 2015 14:28:39 +0200 Subject: [PATCH] add continuous integration scripts --- jenkins.sh | 9 +++++++++ tox.ini | 13 +++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 jenkins.sh create mode 100644 tox.ini 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