Commit 4e09e7c5 authored by Rafael Monnerat's avatar Rafael Monnerat

Refactor development configuration for make runUnitTest and developement...

Refactor development configuration for make runUnitTest and developement independendt. For run tests the instance is not required.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35185 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c2fe5d4e
...@@ -3,28 +3,37 @@ extends = ../profiles/deployment.cfg ...@@ -3,28 +3,37 @@ extends = ../profiles/deployment.cfg
parts += parts +=
development-site development-site
runUnitTest
[configuration]
development_site_bt5_path =
development_site_products =
${software_definition:products-zope}
${software_definition:products-erp5}
${software_definition:products-erp5-development}
${software_definition:products-deps}
${software_definition:products-other}
${software_definition:products-cmf15}
development_site_instancehome = ${buildout:var-directory}/development-site
[software_definition] [software_definition]
software_home = ${buildout:directory} software_home = ${buildout:directory}
[runUnitTest] [runUnitTest]
recipe = erp5.recipe.testrunner <= test-runner-template
zope2-location = ${development-site:zope2-location} products = ${configuration:development_site_products}
products =
${software_definition:products-zope} bt5_path = ${configuration:development_site_bt5_path}
${development-site:products}
bt5_path = ${development-site:bt5-path}
instance-home = ${development-site:instancehome} instance-home = ${configuration:development_site_instancehome}
initialization =
import os
os.environ['PATH'] = ':'.join(['${buildout:data-bin-directory}','${buildout:bin-directory}'] + os.environ.get('PATH','').split(':'))
[development-site] [development-site]
<= zope-instance-template <= zope-instance-template
# developer by default want to have updatable Data.fs # developer by default want to have updatable Data.fs
force-zodb-update = true force-zodb-update = true
bt5-path = bt5-path = ${configuration:development_site_bt5_path}
bt5 = bt5 =
eggs = eggs =
Products.ExternalEditor Products.ExternalEditor
...@@ -44,17 +53,13 @@ mysql_superpassword = ...@@ -44,17 +53,13 @@ mysql_superpassword =
# zope.conf template part BEGIN # zope.conf template part BEGIN
debug-mode = on debug-mode = on
instancehome = ${buildout:var-directory}/development-site instancehome = ${configuration:development_site_instancehome}
http-address = 18080 http-address = 18080
# until we will have more control over products we need to redefine to insert # until we will have more control over products we need to redefine to insert
# local products to be able to override # local products to be able to override
products = products =
${:instancehome}/Products/ ${:instancehome}/Products/
${software_definition:products-erp5} ${configuration:development_site_products}
${software_definition:products-erp5-development}
${software_definition:products-deps}
${software_definition:products-other}
${software_definition:products-cmf15}
# zope.conf template part ENDS # zope.conf template part ENDS
[requirements] [requirements]
......
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