Commit 02ac8472 authored by Benjamin Blanc's avatar Benjamin Blanc

Change code in order to use local erp5 code

parent 6cf68669
...@@ -89,6 +89,7 @@ class Recipe(GenericBaseRecipe): ...@@ -89,6 +89,7 @@ class Recipe(GenericBaseRecipe):
ip=self.options['httpd-ip'], ip=self.options['httpd-ip'],
port=self.options['httpd-port'], port=self.options['httpd-port'],
error_log=os.path.join(self.options['httpd-log-directory'], error_log=os.path.join(self.options['httpd-log-directory'],
testnode_srv_directory=self.options['srv-directory'],
'httpd-error.log'), 'httpd-error.log'),
access_log=os.path.join(self.options['httpd-log-directory'], access_log=os.path.join(self.options['httpd-log-directory'],
'httpd-access.log'), 'httpd-access.log'),
......
...@@ -26,13 +26,13 @@ pwgen-binary = ${pwgen:location}/bin/pwgen ...@@ -26,13 +26,13 @@ pwgen-binary = ${pwgen:location}/bin/pwgen
[testnode] [testnode]
recipe = slapos.cookbook:erp5testnode recipe = slapos.cookbook:erp5testnode
slapos-directory = $${directory:slapos} slapos-directory = $${directory:slapos}
working-directory = $${directory:testnode} working-directory = $${directory:testnode}
test-suite-directory = $${directory:test-suite} test-suite-directory = $${directory:test-suite}
proxy-host = $${slap-network-information:global-ipv6} proxy-host = $${slap-network-information:global-ipv6}
proxy-port = 5000 proxy-port = 5000
log-directory = $${directory:log} log-directory = $${directory:log}
srv-directory = $${rootdirectory:srv}
run-directory = $${directory:run} run-directory = $${directory:run}
test-node-title = $${slap-parameter:test-node-title} test-node-title = $${slap-parameter:test-node-title}
node-quantity = $${slap-parameter:node-quantity} node-quantity = $${slap-parameter:node-quantity}
......
[buildout] [buildout]
find-links += http://dist.repoze.org find-links += http://192.168.242.75:1235/
http://dist.repoze.org
http://www.nexedi.org/static/packages/source/ http://www.nexedi.org/static/packages/source/
extends = extends =
...@@ -26,6 +27,7 @@ parts = ...@@ -26,6 +27,7 @@ parts =
template template
lxml-python lxml-python
eggs eggs
testnode
zip zip
git git
apache apache
...@@ -36,7 +38,9 @@ recipe = plone.recipe.command ...@@ -36,7 +38,9 @@ recipe = plone.recipe.command
stop-on-error = true stop-on-error = true
location = ${buildout:parts-directory}/${:_buildout_section_name_} location = ${buildout:parts-directory}/${:_buildout_section_name_}
#command = ${git:location}/bin/git clone --branch erp5testnode --quiet http://git.erp5.org/repos/slapos.git ${:location} #command = ${git:location}/bin/git clone --branch erp5testnode --quiet http://git.erp5.org/repos/slapos.git ${:location}
command = ${git:location}/bin/git clone --branch erp5testnode --quiet http://192.168.242.75:1236/slapdev.git ${:location} branch = erp5testnode
repository = http://192.168.242.75:1236/slapdev.git
command = ${git:location}/bin/git clone --branch ${:branch} ${:repository} ${:location}
update-command = cd "${:location}" && "${git:location}/bin/git" fetch --quiet && "${git:location}/bin/git" reset --hard @{upstream} update-command = cd "${:location}" && "${git:location}/bin/git" fetch --quiet && "${git:location}/bin/git" reset --hard @{upstream}
[check-recipe] [check-recipe]
...@@ -45,19 +49,6 @@ stop-on-error = true ...@@ -45,19 +49,6 @@ stop-on-error = true
update-command = ${:command} update-command = ${:command}
command = grep parts ${buildout:develop-eggs-directory}/slapos.cookbook.egg-link command = grep parts ${buildout:develop-eggs-directory}/slapos.cookbook.egg-link
[scalability_testnode]
#The plone.recipe.command buildout recipe allows you to run a command when a buildout part is installed or updated
recipe = plone.recipe.command
stop-on-error = true
location = ${buildout:parts-directory}/testnode
branch = scalability-master2
#repository = http://git.erp5.org/repos/erp5.git
repository = http://192.168.242.75:1235/erp5.git
command = ${git:location}/bin/git clone --branch ${:branch} ${:repository} ${:location}
update-command = cd "${:location}" && "${git:location}/bin/git" fetch && "${git:location}/bin/git" reset --hard @{upstream}
[eggs] [eggs]
recipe = zc.recipe.egg recipe = zc.recipe.egg
eggs = eggs =
...@@ -70,6 +61,15 @@ eggs = ...@@ -70,6 +61,15 @@ eggs =
PyXML PyXML
[testnode] [testnode]
#The plone.recipe.command buildout recipe allows you to run a command when a buildout part is installed or updated
recipe = plone.recipe.command
stop-on-error = true
location = ${buildout:parts-directory}/testnode
branch = scalability-master2
#repository = http://git.erp5.org/repos/erp5.git
repository = http://192.168.242.75:1235/erp5.git
command = ${git:location}/bin/git clone --branch ${:branch} ${:repository} ${:location}
update-command = cd "${:location}" && "${git:location}/bin/git" fetch && "${git:location}/bin/git" reset --hard @{upstream}
scripts = scripts =
testnode = erp5.util.testnode:main testnode = erp5.util.testnode:main
......
...@@ -149,9 +149,11 @@ parts = ...@@ -149,9 +149,11 @@ parts =
recipe = plone.recipe.command recipe = plone.recipe.command
stop-on-error = true stop-on-error = true
branch = erp5testnode branch = erp5testnode
repository = http://192.168.242.75:1236/slapdev.git
revision = revision =
location = ${buildout:parts-directory}/${:_buildout_section_name_} location = ${buildout:parts-directory}/${:_buildout_section_name_}
command = "${git:location}/bin/git" clone --branch "${:branch}" --quiet http://git.erp5.org/repos/slapos.git "${:location}" && if [ -n "${:revision}" ]; then cd "${:location}" && "${git:location}/bin/git" reset --quiet --hard "${:revision}" ; fi #command = "${git:location}/bin/git" clone --branch "${:branch}" --quiet http://git.erp5.org/repos/slapos.git "${:location}" && if [ -n "${:revision}" ]; then cd "${:location}" && "${git:location}/bin/git" reset --quiet --hard "${:revision}" ; fi
command = "${git:location}/bin/git" clone --branch "${: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" fetch --quiet && if [ -n "${:revision}" ]; then "${git:location}/bin/git" reset --hard "${:revision}"; else "${git:location}/bin/git" reset --quiet --hard @{upstream} ; fi update-command = cd "${:location}" && "${git:location}/bin/git" fetch --quiet && if [ -n "${:revision}" ]; then "${git:location}/bin/git" reset --hard "${:revision}"; else "${git:location}/bin/git" reset --quiet --hard @{upstream} ; fi
[testnode] [testnode]
......
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