Add JENKINS_TASKS to django_jenkins

New tasks include run_pylint, run_pep8, run_pyflakes, run_jshint and
run_csslint.
This commit is contained in:
James Laska
2014-06-05 11:17:16 -04:00
parent 859cc651e8
commit f0fe6673f2
3 changed files with 21 additions and 2 deletions

View File

@@ -3,6 +3,7 @@
import os
import sys
import glob
from datetime import timedelta
# Update this module's local settings from the global settings module.
@@ -496,3 +497,18 @@ LOGGING = {
},
}
}
if 'django_jenkins' in INSTALLED_APPS:
JENKINS_TASKS = (
'django_jenkins.tasks.with_coverage',
'django_jenkins.tasks.run_pylint',
'django_jenkins.tasks.run_pep8',
'django_jenkins.tasks.run_pyflakes',
'django_jenkins.tasks.run_jshint',
'django_jenkins.tasks.run_csslint',
)
PEP8_RCFILE = "setup.cfg"
CSSLINT_CHECKED_FILES = [os.path.join(BASE_DIR, 'ui/static/less')]
JSHINT_CHECKED_FILES = [os.path.join(BASE_DIR, 'ui/static/js'),
os.path.join(BASE_DIR, 'ui/static/lib/ansible'),]