Last active
August 29, 2015 14:11
-
-
Save macagua/dcd7f386cda61e5dabf4 to your computer and use it in GitHub Desktop.
SVN Pre commit Hook for Quality Assurance Plone buildout configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[buildout] | |
extensions = | |
# A zc.buildout extension to ease the development of large projects with lots of packages. | |
# For options see http://pypi.python.org/pypi/mr.developer | |
mr.developer | |
extends = | |
https://raw.github.com/collective/buildout.plonetest/master/qa.cfg | |
http://dist.plone.org/release/4.3-latest/versions.cfg | |
find-links = | |
http://dist.plone.org/release/4.3-latest/ | |
http://dist.plone.org/thirdparty/ | |
auto-checkout = * | |
eggs = | |
unzip = true | |
versions = versions | |
parts = | |
instance | |
svn-precommit-script | |
svn-precommit-msg | |
package-name = collective.passwordhistory | |
[sources] | |
collective.passwordhistory = svn http://svn.plone.org/svn/collective/collective.passwordhistory/trunk/ | |
[versions] | |
setuptools = 8.2.1 | |
[instance] | |
recipe = plone.recipe.zope2instance | |
user = admin:admin | |
http-address = 8080 | |
eggs = | |
Plone | |
plone.app.upgrade | |
${buildout:package-name} | |
${buildout:eggs} | |
zcml = | |
${buildout:package-name} | |
environment-vars = zope_i18n_compile_mo_files true | |
# For more options see https://pypi.python.org/pypi/plone.recipe.codeanalysis | |
[code-analysis] | |
# NAMESPACE/PRODUCT for collective.passwordhistory is like ${buildout:directory}/src/collective/passwordhistory | |
directory = ${buildout:directory}/src/collective.passwordhistory/collective/passwordhistory | |
pre-commit-hook = False | |
flake8-ignore = E501 | |
clean-lines = True | |
deprecated-aliases = True | |
imports = True | |
prefer-single-quotes = True | |
utf8-header = True | |
[svn-precommit-msg] | |
recipe = plone.recipe.command | |
command = | |
echo "Installing SVN pre-commit hook script into ${buildout:bin-directory}/plone-svn-pre-commit" | |
update-command = ${:command} | |
[svn-precommit-script] | |
recipe = collective.recipe.template | |
output = ${buildout:bin-directory}/plone-svn-pre-commit | |
mode = 111 | |
input = inline: | |
#!/bin/bash | |
bin/code-analysis |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment