# Development profile of slaprunner.
# Exactly the same as software.cfg, but fetch the slapos.cookbook and
# slapos.toolbox from git repository instead of fetching stable version,
# allowing to play with bleeding edge environment.

# You'll need to run buildout twice for this profile.

[buildout]
extends = common.cfg

parts +=
  slapos.cookbook-repository
  slapos.toolbox-repository
  erp5.util-repository
  check-recipe

#  slapos.core-repository

develop =
  ${:parts-directory}/slapos.toolbox-repository
  ${:parts-directory}/slapos.cookbook-repository
  ${:parts-directory}/erp5.util-repository
#  ${:parts-directory}/slapos.core-repository


[slapos.toolbox-repository]
recipe = slapos.recipe.build:gitclone
repository = http://git.erp5.org/repos/slapos.toolbox.git
branch = slaprunner-paas
git-executable = ${git:location}/bin/git

[slapos.cookbook-repository]
recipe = slapos.recipe.build:gitclone
repository = http://git.erp5.org/repos/slapos.git
branch = slaprunner-paas-test
git-executable = ${git:location}/bin/git

# Used for resiliency tests only
[erp5.util-repository]
recipe = slapos.recipe.build:gitclone
repository = http://git.erp5.org/repos/erp5.git
#branch = scalability-master2
revision = f9a812f4e97ffeed359bc5611366a5c8675ec749
git-executable = ${git:location}/bin/git

#[slapos.core-repository]
#recipe = slapos.recipe.build:gitclone
#repository = http://git.erp5.org/repos/slapos.core.git
#branch = master
#git-executable = ${git:location}/bin/git
#
[check-recipe]
recipe = plone.recipe.command
stop-on-error = true
update-command = ${:command}
command =
  grep parts ${buildout:develop-eggs-directory}/slapos.cookbook.egg-link &&
  grep parts ${buildout:develop-eggs-directory}/slapos.toolbox.egg-link &&
  grep parts ${buildout:develop-eggs-directory}/erp5.util.egg-link

#  grep parts ${buildout:develop-eggs-directory}/slapos.core.egg-link &&