plone.app.discussion/buildout.cfg

89 lines
2.4 KiB
INI
Raw Normal View History

[buildout]
2015-01-29 19:32:43 +01:00
extends = http://dist.plone.org/release/4.3.4/versions.cfg
parts =
instance
2015-01-29 20:29:53 +01:00
test
coverage
test-coverage
mkrelease
pocompile
2013-12-15 12:00:25 +01:00
code-analysis
i18ndude
update_translations
2015-01-29 20:29:53 +01:00
develop = .
2015-01-29 19:32:43 +01:00
[instance]
recipe = plone.recipe.zope2instance
http-address = 8080
user = admin:admin
eggs = Plone
2015-01-29 20:29:53 +01:00
[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]
recipe = zc.recipe.egg
eggs = jarn.mkrelease
[pocompile]
recipe = zc.recipe.egg
eggs = zest.pocompile
2013-12-15 12:00:25 +01:00
[code-analysis]
recipe = plone.recipe.codeanalysis
directory = ${buildout:directory}/plone/app/discussion
2013-12-15 12:04:05 +01:00
flake8-max-complexity = 50
2013-12-15 12:00:25 +01:00
[i18ndude]
recipe = zc.recipe.egg
eggs =
i18ndude
[update_translations]
recipe = collective.recipe.template
output = ${buildout:bin-directory}/update_translations
input = inline:
#!/usr/bin/env bash
2014-08-23 00:31:28 +02:00
DOMAIN="plone.app.discussion"
BASE_PATH=${buildout:directory}/plone/app/discussion
I18NDUDE=${buildout:bin-directory}/i18ndude
2014-08-23 00:31:28 +02:00
$I18NDUDE rebuild-pot --pot $BASE_PATH/locales/$DOMAIN.pot --create "$DOMAIN" $BASE_PATH*
$I18NDUDE rebuild-pot --pot $BASE_PATH/i18n/plone.pot --create "plone" $BASE_PATH/profiles/
for LANG in `find $BASE_PATH/locales -maxdepth 1 -mindepth 1 -type d \
2014-08-23 00:31:28 +02:00
| sed -e "s/.*locales\/\(.*\)$/\1/"`; do
$I18NDUDE sync --pot $BASE_PATH/locales/$DOMAIN.pot $BASE_PATH/locales/de/LC_MESSAGES/$DOMAIN.po
msgfmt --no-hash -o $BASE_PATH/locales/$LANG/LC_MESSAGES/$DOMAIN.mo $BASE_PATH/locales/$LANG/LC_MESSAGES/$DOMAIN.po
2014-08-23 00:31:28 +02:00
$I18NDUDE sync --pot $BASE_PATH/i18n/plone.pot $BASE_PATH/i18n/plone-$LANG.po
msgfmt --no-hash -o $BASE_PATH/i18n/plone-$LANG.mo $BASE_PATH/i18n/plone-$LANG.po
done
2015-01-29 19:32:43 +01:00
mode = 755
[versions]
2015-01-29 20:29:53 +01:00
plone.app.discussion =
2015-01-29 19:32:43 +01:00
zope.interface = 4.0.5
zc.buildout = 2.3.1
setuptools = 8.0.4