Plug and play continuous integration with Django and Jenkins
$ pip install django-jenkins
Or by downloading the source and running:
$ python setup.py install
Latest git version:
$ pip install -e git+git://github.com/kmmbvnr/django-jenkins.git#egg=django-jenkins $ pip install coverage
Installation for Python 3:
Works out of the box
'django_jenkins' to your
Configure Jenkins to run the following command:
$ ./manage.py jenkins --enable-coverage
This will create reports/ directory with junit xml, Coverage and Pylint reports.
For more details see the generic tutorial: https://sites.google.com/site/kmmbvnr/home/django-jenkins-tutorial
If present, it is supposed to be a list/tuple of django apps for Jenkins to run. Tests, reports, and coverage are generated only for the apps from this list.
List of Jenkins reporters executed by
JENKINS_TASKS = ()
The name of the class to use for starting the test suite for
jenkinscommand. Class should be inherited from
Here is the reporters prebuild with django-jenkins
Runs Pylint over selected Django apps.
Runs CSS lint tools over app/static/*/*.css files. Creates CSS Lint compatible report for Jenkins
You should have the csslint package installed
Runs pep8 tool over selected Django apps. Creates Pylint compatible report for Jenkins
You should have pep8 python package (>=1.3) installed to run this task.
Runs Pyflakes tool over selected Django apps. Creates Pylint compatible report for Jenkins.
You should have Pyflakes python package installed to run this task.
Runs flake8 tool over selected Django apps. Creates pep8 compatible report for Jenkins.
You should have flake8 python package installed to run this task.
Runs SLOCCount tool over selected Django apps. Creates sloccount plugin compatible report for Jenkins.
You should have the SLOCCount program installed to run this task.
- Flake8 >= 2.5.0 support
- An exceptional release for the last 5 years issued not on 15th day of a month
- Drop python 2.6 support
- Drop django 1.6 support
- Add django 1.9 compatibility
- Drop scss-lint support (the tool no longer has xml output)
- Coverage>=4 compatibility
Set up local jenkins
Set up django-jenkins:
npm install jshint npm install csslint PATH=$PATH:$WORKSPACE/node_modules/.bin tox
Ensure that everything works
Modify the the only one thing
Ensure that everything works again
Fix pep8/pyflakes errors and minimize pylint's warninigs
Created and maintained by Mikhail Podgurskiy <firstname.lastname@example.org>
Special thanks, for all github forks authors for project extensions ideas and problem identifications.