2010-02-06 15:25:07 +01:00
[buildout]
extends =
http://svn.plone.org/svn/collective/buildout/plonetest/plone-4.0.x.cfg
package-name = plone.app.discussion
2010-08-29 00:57:47 +02:00
package-directory = plone/app/discussion
2010-02-06 15:25:07 +01:00
2010-08-09 15:05:07 +02:00
parts + =
2010-08-28 19:07:10 +02:00
omelette
2010-08-09 18:58:38 +02:00
test
2010-08-09 15:05:07 +02:00
coverage-test
coverage-report
2010-08-28 16:07:35 +02:00
jscoverage-build
2010-08-28 14:05:53 +02:00
jscoverage
pylint
2010-08-28 16:07:35 +02:00
pylint-test
2010-08-28 20:21:54 +02:00
zptlint
zptlint-test
2010-08-28 14:05:53 +02:00
2010-02-06 15:25:07 +01:00
[versions]
2010-08-09 14:06:13 +02:00
zope.schema = 3.6.0
Sphinx = 0.6.4
Products.TinyMCE = 1.1.1
2010-08-09 15:05:07 +02:00
2010-08-28 19:07:10 +02:00
[omelette]
recipe = collective.recipe.omelette
eggs = ${instance:eggs}
packages = ${instance:location}/lib/python ./
2010-08-09 15:05:07 +02:00
[test]
recipe = collective.xmltestreport
eggs = ${buildout:package-name}
2010-08-24 11:04:13 +02:00
defaults = ['--auto-color', '--auto-progress']
2010-08-09 15:05:07 +02:00
[coverage-test]
recipe = zc.recipe.testrunner
2010-09-16 10:23:51 +02:00
eggs = ${buildout:package-name}
2010-08-09 15:05:07 +02:00
defaults = ['--coverage', '../../coverage', '-v', '--auto-progress']
[coverage-report]
recipe = zc.recipe.egg
eggs = z3c.coverage
2010-08-26 12:28:22 +02:00
scripts = coveragereport
2010-08-09 15:05:07 +02:00
arguments = ('coverage', 'report')
2010-08-28 14:05:53 +02:00
2010-08-28 16:07:35 +02:00
[jscoverage-build]
2010-08-28 14:27:39 +02:00
recipe = zc.recipe.cmmi
url = http://siliconforks.com/jscoverage/download/jscoverage-0.5.tar.bz2
2010-08-28 16:07:35 +02:00
[jscoverage]
2010-08-28 14:05:53 +02:00
recipe = collective.recipe.template
input = inline:
#!/bin/sh
2010-08-29 00:57:47 +02:00
jscoverage-server -v --ip-address = 0.0.0.0 --port=9999 --encoding=UTF-8 --document-root=${buildout:package-directory} --no-instrument=/tests
2010-08-28 14:05:53 +02:00
output = ${buildout:directory}/bin/jscoverage
mode = 755
[pylint]
recipe = zc.recipe.egg
eggs = logilab.pylintinstaller
2010-08-28 16:07:35 +02:00
extra-paths = ${instance:location}/lib/python
2010-08-28 14:05:53 +02:00
entry-points = pylint=pylint.lint:Run
arguments = sys.argv[1:]
2010-08-28 19:07:10 +02:00
arguments = [
'--output-format = parseable',
'--zope = y',
'--reports = y',
2010-08-28 21:48:40 +02:00
'--disable-msg = E0611,F0401,W0232,E1101,C0103,C0111,R0201,W0201,R0911,R0904,F0220,E1103,R0901,E0211,E0213,E1002,W0622',
2010-08-28 19:07:10 +02:00
'--generated-members = objects',
] + sys.argv[1:]
# Disable messages:
#
# E0611: No name %r in module %r. Used when a name cannot be found in a module.
# F0401: Unable to import %r (%s). Used when pylint has been unable to import a module.
# W0232: Class has no __init__ method. Used when a class has no __init__ method, neither its parent classes.
# C0103: Invalid name "%s" (should match %s). Used when the name doesn't match the regular expression associated to its type (constant, variable, class...).
# C0111: Message Missing docstring Description Used when a module, function, class or method has no docstring. Some special methods like init don't necessary require a docstring. Explanation…
# R0201: Method could be a function
# W0201: Attribute %r defined outside __init__
# R0911: Too many return statements (%s/%s)
2010-08-28 20:21:54 +02:00
# E0211: Method has no argument
# - Reason: raises an error on zope.interface definitions
# E0213 Method should have "self" as first argument
# - Reason: raises an error on zope.interface definitions
2010-09-03 23:01:22 +02:00
# E1121 Too many positional arguments for function call
# - Reason: ???
2010-08-28 20:21:54 +02:00
# E1002 Use super on an old style class
# - Reason: super(CommentsViewlet, self).update() raises an error
2010-08-28 21:48:40 +02:00
# W0622 total_comments: Redefining built-in 'object'
# - Reason: top level def function will not work (e.g. for catalog indexers)
2010-08-28 19:07:10 +02:00
# ...
# See http://pylint-messages.wikidot.com/all-messages for a full list.
2010-08-28 16:07:35 +02:00
[pylint-test]
recipe = collective.recipe.template
input = inline:
#!/bin/sh
2010-08-29 00:57:47 +02:00
if [ -s pylint.log ]; then
rm pylint.log
echo "Old pylint.log file removed"
fi
2010-08-28 16:07:35 +02:00
echo "Running pylint"
2010-08-29 00:57:47 +02:00
find -L ${buildout:package-directory} -regex ".*\.[c]?py" | xargs bin/pylint >> pylint.log
2010-08-28 16:07:35 +02:00
echo "finish"
output = ${buildout:directory}/bin/pylint-test
mode = 755
2010-08-28 20:21:54 +02:00
[zptlint]
recipe = zc.recipe.egg
eggs =
zptlint
entry-points = zptlint=zptlint:run
[zptlint-test]
recipe = collective.recipe.template
input = inline:
#!/bin/sh
if [ -e zptlint.log ]; then
2010-08-29 00:57:47 +02:00
echo "Old zptlint.log file removed"
2010-08-28 20:21:54 +02:00
rm zptlint.log
fi
echo "Running zptlint-test"
2010-08-29 00:57:47 +02:00
TMPL = $(find ${buildout:package-directory} -regex ".*\.[c|z]?pt")
2010-08-28 20:21:54 +02:00
echo "Checking"
2010-08-28 20:23:38 +02:00
echo $TMPL
2010-08-29 00:57:47 +02:00
find ${buildout:package-directory} -regex ".*\.[c|z]?pt" | xargs bin/zptlint > zptlint.log
2010-08-28 21:18:33 +02:00
if [ -s zptlint.log ]; then
echo "Errors were found:"
cat zptlint.log
echo "Errors were written to zptlint.log"
2010-08-28 21:12:31 +02:00
exit 1;
2010-08-28 20:21:54 +02:00
else
echo "No errors found"
rm zptlint.log
fi
output = ${buildout:directory}/bin/zptlint-test
mode = 755