Commit 22584961 authored by Rafael Monnerat's avatar Rafael Monnerat

[slapos-testing] Pre-setup slapos.core before run tests

This is a workarround to circunvent setuptools/distutils conflicts when run python setup.py test for the first time.
parent b3400dcc
[buildout] [buildout]
parts = parts =
slapos.core-setup
slapos-test-runner slapos-test-runner
sh-environment sh-environment
...@@ -24,6 +25,12 @@ git-executable = ${git:location}/bin/git ...@@ -24,6 +25,12 @@ git-executable = ${git:location}/bin/git
<= download-source <= download-source
repository = ${slapos.core-repository:location} repository = ${slapos.core-repository:location}
[slapos.core-setup]
recipe = plone.recipe.command
command = echo "Updating setup...";cd $${slapos.core:location}; export PATH="$${slapos-test-runner:prepend-path}:$PATH"; export CPPFLAGS="$${environment:CPPFLAGS}"; export LDFLAGS="$${environment:LDFLAGS}"; export PYTHONPATH="$${environment:PYTHONPATH}"; python setup.py test -n; python setup.py test -n; python setup.py test -n; python setup.py test -n
update-command = $${:command}
[slapos.recipe.template] [slapos.recipe.template]
<= download-source <= download-source
repository = ${slapos.recipe.template-repository:location} repository = ${slapos.recipe.template-repository:location}
......
...@@ -25,6 +25,7 @@ eggs = ...@@ -25,6 +25,7 @@ eggs =
erp5.util erp5.util
slapos.cookbook slapos.cookbook
collective.recipe.template collective.recipe.template
plone.recipe.command
entry-points = entry-points =
runTestSuite=erp5.util.testsuite:runTestSuite runTestSuite=erp5.util.testsuite:runTestSuite
scripts = scripts =
...@@ -61,7 +62,7 @@ branch = master ...@@ -61,7 +62,7 @@ branch = master
[template] [template]
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg url = ${:_profile_base_location_}/instance.cfg
md5sum = 7a8be25961238f8e11d5de95d2f05598 md5sum = 1330c8ccd1dab485aadba5e688d2b2e1
output = ${buildout:directory}/template.cfg output = ${buildout:directory}/template.cfg
mode = 640 mode = 640
...@@ -106,7 +107,6 @@ Werkzeug = 0.9.4 ...@@ -106,7 +107,6 @@ Werkzeug = 0.9.4
buildout-versions = 1.7 buildout-versions = 1.7
cmd2 = 0.6.7 cmd2 = 0.6.7
collective.recipe.template = 1.10 collective.recipe.template = 1.10
erp5.util = 0.4.36
itsdangerous = 0.23 itsdangerous = 0.23
lxml = 3.3.0beta3 lxml = 3.3.0beta3
meld3 = 0.6.10 meld3 = 0.6.10
...@@ -130,6 +130,8 @@ bpython = 0.12 ...@@ -130,6 +130,8 @@ bpython = 0.12
# slapos.core==1.0.0 # slapos.core==1.0.0
cliff = 1.5.2 cliff = 1.5.2
erp5.util = 0.4.36
# Required by: # Required by:
# slapos.cookbook==0.85 # slapos.cookbook==0.85
inotifyx = 0.2.0-1 inotifyx = 0.2.0-1
......
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