Fix buildout.
This commit is contained in:
parent
52de2e809a
commit
0591f9ad2d
27
buildout.cfg
27
buildout.cfg
@ -2,11 +2,15 @@
|
|||||||
extends = http://dist.plone.org/release/4.3.4/versions.cfg
|
extends = http://dist.plone.org/release/4.3.4/versions.cfg
|
||||||
parts =
|
parts =
|
||||||
instance
|
instance
|
||||||
|
test
|
||||||
|
coverage
|
||||||
|
test-coverage
|
||||||
mkrelease
|
mkrelease
|
||||||
pocompile
|
pocompile
|
||||||
code-analysis
|
code-analysis
|
||||||
i18ndude
|
i18ndude
|
||||||
update_translations
|
update_translations
|
||||||
|
develop = .
|
||||||
|
|
||||||
[instance]
|
[instance]
|
||||||
recipe = plone.recipe.zope2instance
|
recipe = plone.recipe.zope2instance
|
||||||
@ -14,6 +18,28 @@ http-address = 8080
|
|||||||
user = admin:admin
|
user = admin:admin
|
||||||
eggs = Plone
|
eggs = Plone
|
||||||
|
|
||||||
|
|
||||||
|
[test]
|
||||||
|
recipe = zc.recipe.testrunner
|
||||||
|
eggs = plone.app.discussion [test]
|
||||||
|
defaults = ['-s', 'plone.app.discussion', '--auto-color', '--auto-progress']
|
||||||
|
|
||||||
|
[coverage]
|
||||||
|
recipe = zc.recipe.egg
|
||||||
|
eggs = coverage
|
||||||
|
|
||||||
|
[test-coverage]
|
||||||
|
recipe = collective.recipe.template
|
||||||
|
input = inline:
|
||||||
|
#!/bin/bash
|
||||||
|
${buildout:directory}/bin/coverage run --source=${buildout:directory}/src/plone/app/discussion bin/test
|
||||||
|
${buildout:directory}/bin/coverage html
|
||||||
|
${buildout:directory}/bin/coverage report -m --fail-under=100
|
||||||
|
# Fail (exit status 1) if coverage returns exit status 2 (this happens
|
||||||
|
# when test coverage is below 100%.
|
||||||
|
output = ${buildout:directory}/bin/test-coverage
|
||||||
|
mode = 755
|
||||||
|
|
||||||
[mkrelease]
|
[mkrelease]
|
||||||
recipe = zc.recipe.egg
|
recipe = zc.recipe.egg
|
||||||
eggs = jarn.mkrelease
|
eggs = jarn.mkrelease
|
||||||
@ -56,6 +82,7 @@ input = inline:
|
|||||||
mode = 755
|
mode = 755
|
||||||
|
|
||||||
[versions]
|
[versions]
|
||||||
|
plone.app.discussion =
|
||||||
zope.interface = 4.0.5
|
zope.interface = 4.0.5
|
||||||
zc.buildout = 2.3.1
|
zc.buildout = 2.3.1
|
||||||
setuptools = 8.0.4
|
setuptools = 8.0.4
|
||||||
|
Loading…
Reference in New Issue
Block a user