Commit eb9b6b95 authored by Xiaowu Zhang's avatar Xiaowu Zhang

stack/erp5: use download recipe for templating

parent 1d0f5117
......@@ -158,13 +158,6 @@ rendered = ${buildout:directory}/instance-caucase.cfg
<= download-base-neo
url = ${:_profile_base_location_}/${:filename}
[template-run-zelenium]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/template/run-zelenium-test.py.in
md5sum = 8c42f98228f0ae9dc16ee2dab739b818
output = ${buildout:directory}/run-zelenium-test.py.in
mode = 755
[check-recipe]
recipe = plone.recipe.command
stop-on-error = true
......@@ -224,6 +217,10 @@ link-binary =
[template-postfix-aliases]
< = download-base
[template-run-zelenium]
< = download-base
url = ${:_profile_base_location_}/template/run-zelenium-test.py.in
[template]
recipe = slapos.recipe.template:jinja2
# XXX: "template.cfg" is hardcoded in instanciation recipe
......@@ -292,7 +289,8 @@ context =
key root_common root-common:target
key site_zcml site-zcml:target
key sixtunnel_location 6tunnel:location
key template_run_zelenium template-run-zelenium:output
key template_run_zelenium template-run-zelenium:target
key egg_interpreter eggs:interpreter
key stunnel_location stunnel:location
key template_apache_conf template-apache-backend-conf:target
key template_balancer template-balancer:target
......
......@@ -66,7 +66,7 @@ md5sum = 0969fbb25b05c02ef3c2d437b2f4e1a0
[template]
filename = instance.cfg.in
md5sum = e9229b6b3ca344a094f63fef2c7fc2a1
md5sum = a5e8278067899081239d4366cf2b9eae
[monitor-template-dummy]
filename = dummy.cfg
......@@ -82,7 +82,7 @@ md5sum = 3e650915959ff31c9c13c84069bbcd35
[template-zope]
filename = instance-zope.cfg.in
md5sum = bec70aec9d8961f17b4c93d797cc67f9
md5sum = ea20f40f33f8d6f702b43f9e25bd516e
[template-balancer]
filename = instance-balancer.cfg.in
......
......@@ -73,17 +73,19 @@ ca-crl = ${directory:test-ca-crl}
configuration = {{ dumps(saucelabs_dict) }}
user = {{ dumps(slapparameter_dict['inituser-login']) }}
password = {{ dumps(slapparameter_dict['inituser-password']) }}
binPath = {{ bin_directory }}/{{ parameter_dict['egg-interpreter'] }}
[{{ section('test-zelenium-runner') }}]
recipe = slapos.recipe.template:jinja2
<= jinja2-template-base
template = {{ parameter_dict['run-zelenium-template'] }}
rendered = ${directory:bin}/runTestSuite
extensions = jinja2.ext.do
mode = 755
context =
import json_module json
key configuration test-zelenium-runner-parameter:configuration
key user test-zelenium-runner-parameter:user
key password test-zelenium-runner-parameter:password
key binPath test-zelenium-runner-parameter:binPath
{% else -%}
{% if slapparameter_dict['mysql-test-url-list'] -%}
[{{ section('run-unit-test-userhosts-wrapper') }}]
......
......@@ -97,6 +97,7 @@ template-monitor = {{ dumps(template_monitor) }}
extra-path-list = {{ dumps(extra_path_list) }}
matplotlibrc = {{ matplotlibrc_location }}
erp5-location = {{ erp5_location }}
egg-interpreter = {{egg_interpreter}}
[dynamic-template-zope]
<= jinja2-template-base
......
#!${buildout:directory}/bin/${eggs:interpreter}
#!{{ binPath }}
# BEWARE: This file is operated by slapgrid
# BEWARE: It will be overwritten automatically
......
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