[Erp5-report] r35185 rafael - /erp5/trunk/buildout/profiles/development.cfg

nobody at svn.erp5.org nobody at svn.erp5.org
Tue May 11 23:39:03 CEST 2010


Author: rafael
Date: Tue May 11 23:39:03 2010
New Revision: 35185

URL: http://svn.erp5.org?rev=35185&view=rev
Log:
Refactor development configuration for make runUnitTest and developement independendt. For run tests the instance is not required.

Modified:
    erp5/trunk/buildout/profiles/development.cfg

Modified: erp5/trunk/buildout/profiles/development.cfg
URL: http://svn.erp5.org/erp5/trunk/buildout/profiles/development.cfg?rev=35185&r1=35184&r2=35185&view=diff
==============================================================================
--- erp5/trunk/buildout/profiles/development.cfg [utf8] (original)
+++ erp5/trunk/buildout/profiles/development.cfg [utf8] Tue May 11 23:39:03 2010
@@ -3,28 +3,37 @@
 
 parts +=
   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_home = ${buildout:directory}
 
 [runUnitTest]
-recipe = erp5.recipe.testrunner
-zope2-location = ${development-site:zope2-location}
-products =
-  ${software_definition:products-zope}
-  ${development-site:products}
-bt5_path = ${development-site:bt5-path}
+<= test-runner-template
+products = ${configuration:development_site_products}
 
-instance-home = ${development-site:instancehome}
-initialization =
-  import os
-  os.environ['PATH'] = ':'.join(['${buildout:data-bin-directory}','${buildout:bin-directory}'] + os.environ.get('PATH','').split(':'))
+bt5_path = ${configuration:development_site_bt5_path}
+
+instance-home = ${configuration:development_site_instancehome}
 
 [development-site]
 <= zope-instance-template
 # developer by default want to have updatable Data.fs
 force-zodb-update = true
-bt5-path =
+bt5-path = ${configuration:development_site_bt5_path}
 bt5 =
 eggs =
   Products.ExternalEditor
@@ -44,17 +53,13 @@
 
 # zope.conf template part BEGIN
 debug-mode = on
-instancehome = ${buildout:var-directory}/development-site
+instancehome = ${configuration:development_site_instancehome}
 http-address = 18080
 # until we will have more control over products we need to redefine to insert
 # local products to be able to override
 products =
   ${:instancehome}/Products/
-  ${software_definition:products-erp5}
-  ${software_definition:products-erp5-development}
-  ${software_definition:products-deps}
-  ${software_definition:products-other}
-  ${software_definition:products-cmf15}
+  ${configuration:development_site_products}
 # zope.conf template part ENDS
 
 [requirements]




More information about the Erp5-report mailing list