Package: django-jenkins
Plug and play continuous integration with Django and JenkinsInstallationFrom PyPI:$ pip install django-jenkinsOr by downloading the source and running:$ python setup.py installLatest git version:$ pip install -e git+git://github.com/kmmbvnr/django-jenkins.git#egg=django-jenkins
$ pip install coverageInstallation for Python 3:Works out of the boxDjango compatibilitydjango-jenkins=0.XX.Y version suppose to work with django=X.X.Z version.Probably same version of django-jenkins will works for nearest versions of django=>X.X-1.Z<X.X+1.Z
But it’s not guarantied.All older versions of django-jenkins below current are not supported.UsageAdd'django_jenkins'to yourINSTALLED_APPSlist.
Configure Jenkins to run the following command:$ ./manage.py jenkins --enable-coverageThis 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-tutorialSettingsPROJECT_APPSIf 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.JENKINS_TASKSList of Jenkins reporters executed by./manage.py jenkinscommand.Default value:JENKINS_TASKS = ()JENKINS_TEST_RUNNERThe name of the class to use for starting the test suite forjenkinscommand.
Class should be inherited fromdjango_jenkins.runner.CITestSuiteRunnerReportersHere is the reporters prebuild with django-jenkinsdjango_jenkins.tasks.run_pylintRunsPylintover selected Django apps.Task-specific settings:PYLINT_RCFILEdjango_jenkins.tasks.run_csslintRuns CSS lint tools overapp/static/*/*.cssfiles.
Creates CSS Lint compatible report for JenkinsYou should have the csslint package installeddjango_jenkins.tasks.run_scsslintRuns SCSS lint tool overapp/static/*/*.scssfiles.
Creates CSS Lint compatible report for JenkinsYou should have thescss-lintandscss_lint_reporter_checkstyletools installeddjango_jenkins.tasks.run_pep8Runs pep8 tool over selected Django apps.
Creates Pylint compatible report for JenkinsYou should havepep8python package (>=1.3) installed to run this task.Task-specific settings:PEP8_RCFILEdjango_jenkins.tasks.run_pyflakesRuns Pyflakes tool over selected Django apps.
Creates Pylint compatible report for Jenkins.You should havePyflakespython package installed to run this task.django_jenkins.tasks.run_flake8Runs flake8 tool over selected Django apps.
Creates pep8 compatible report for Jenkins.You should haveflake8python package installed to run this task.django_jenkins.tasks.run_sloccountRunsSLOCCounttool over selected Django apps.
Creates sloccount plugin compatible report for Jenkins.You should have the SLOCCount program installed to run this task.Changelog0.110.0 2016-09-15Flake8 >= 3.0 supportscss-linttask addedContribution guideSet up local jenkinsSet up django-jenkins:npm install jshint
npm install csslint
PATH=$PATH:$WORKSPACE/node_modules/.bin
toxEnsure that everything worksModify thethe only one thingEnsure that everything works againFix pep8/pyflakes errors and minimize pylint’s warninigsPull request!AuthorsCreated and maintained by Mikhail Podgurskiy <kmmbvnr@gmail.com>Contributors:https://github.com/kmmbvnr/django-jenkins/graphs/contributorsSpecial thanks, for all github forks authors for project extensions ideas and problem identifications.