Commit accbb1fd authored by Romain Courteaud's avatar Romain Courteaud

Integrate beteireflow product as patch.

It eases the review with git.
parent 12daeceb
......@@ -7,7 +7,6 @@ extends =
../erp5/software.cfg
parts +=
sanef.repository
mysql-tritonn-5.0
bt5-repository
maatkit
......@@ -37,27 +36,3 @@ md5sum = e22bbf531d2b5f121462267cbd8d2ef8
[instance-recipe]
egg = slapos.cookbook
module = bef_erp5
[sanef.repository]
<= erp5
branch = CR1094
repository = https://saneftestbot:kucahS5oav6jahch@git.erp5.org/repos/sanef.git
command = (${git:location}/bin/git clone --quiet -b ${:branch} ${:repository} ${:location}) || (rm -fr ${:location} && exit 1)
[bt5-repository]
recipe = plone.recipe.command
stop-on-error = true
command =
${buildout:executable} ${erp5:location}/product/ERP5/bin/genbt5list ${erp5:location}/product/ERP5/bootstrap ${erp5:location}/bt5 ${sanef.repository:location}/bt5
update-command = ${:command}
[products-erp5]
recipe = plone.recipe.command
stop-on-error = true
location = ${buildout:parts-directory}/${:_buildout_section_name_}
update-command = ${:command}
command =
mkdir -p ${:location}/Products &&
for product in ${erp5:location}/product/* ; do ln -fs $product ${:location}/Products ; done &&
for product in ${sanef.repository:location}/product/* ; do ln -fs $product ${:location}/Products ; done &&
echo "__import__('pkg_resources').declare_namespace(__name__)" > "${:location}/Products/__init__.py"
......@@ -134,6 +134,7 @@ parts =
# get git repositories
erp5
beteireflow-repository
genbt5list
# fix products path (Zeo needs ERP5 Products to be available for
......@@ -153,7 +154,7 @@ list = ${local-bt5-repository:list}
[local-bt5-repository]
# Same as bt5-repository, but only local repository.
# Used to generate bt5lists.
list = ${erp5:location}/bt5 ${erp5:location}/product/ERP5/bootstrap
list = ${erp5:location}/bt5 ${erp5:location}/product/ERP5/bootstrap ${beteireflow-repository:location}/bt5
[genbt5list]
recipe = plone.recipe.command
......@@ -228,7 +229,7 @@ command =
for product in ERP5PropertySheetLegacy ; do ${subversion:location}/bin/svn checkout ${:svn_param} https://svn.erp5.org/repos/public/erp5/trunk/obsolete/products/$product ${:location}/$product || exit 1 ; done
[erp5_repository_list]
repository_id_list = sanef.repository erp5
repository_id_list = beteireflow-repository erp5
[erp5]
# Recipe zerokspot.recipe.git is disabled, as is not possible to change its
......@@ -244,6 +245,12 @@ revision =
command = ${git:location}/bin/git clone --quiet -b ${:branch} ${:repository} ${:location} && if [ -n ${:revision} ]; then cd ${:location} && ${git:location}/bin/git reset --quiet --hard ${:revision} ; fi
update-command = cd ${:location} && ${git:location}/bin/git pull --quiet && if [ -n ${:revision} ]; then cd ${:location} && ${git:location}/bin/git reset --quiet --hard ${:revision} ; fi
[beteireflow-repository]
<= erp5
branch = CR1094
repository = https://saneftestbot:kucahS5oav6jahch@git.erp5.org/repos/sanef.git
command = (${git:location}/bin/git clone --quiet -b ${:branch} ${:repository} ${:location}) || (rm -fr ${:location} && exit 1)
[products]
# XXX: ERP5 related products are not defined as python distributions, so it is
# required to configure them in declarative manner
......@@ -256,6 +263,7 @@ command =
for DIR in "${products-deps:location}"; do cd "$DIR"; rm -f Products ; ln -s . Products; touch __init__.py; done
for DIR in "${products-upgrade:location}"; do cd "$DIR"; rm -f Products ; ln -s . Products; touch __init__.py; done
for DIR in "${erp5:location}"; do cd "$DIR"; rm -f Products ; ln -s product Products; touch product/__init__.py; done
for DIR in "${beteireflow-repository:location}"; do cd "$DIR"; rm -f Products ; ln -s product Products; touch product/__init__.py; done
update-command = ${:command}
[testrunner]
......@@ -395,6 +403,7 @@ extra-paths =
${products-deps:location}
${products-upgrade:location}
${erp5:location}
${beteireflow-repository:location}
[mysql-python]
python = python2.6
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment