add continuous integration scripts
This commit is contained in:
parent
68ddd8c456
commit
96f987ecb3
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue