# 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 =
  ../../component/git/buildout.cfg
  software.cfg


parts +=

# Development parts
  slapos.cookbook-repository
  slapos.core-repository
  slapos.toolbox-repository
  slapos.recipe.maarch-repository
  check-recipe

develop =
  ${:parts-directory}/slapos.cookbook-repository
  ${:parts-directory}/slapos.core-repository
  ${:parts-directory}/slapos.toolbox-repository
  ${:parts-directory}/slapos.recipe.maarch-repository


[slapos.toolbox-repository]
recipe = slapos.recipe.build:gitclone
repository = https://lab.nexedi.com/nexedi/slapos.toolbox.git
branch = master
git-executable = ${git:location}/bin/git

[slapos.cookbook-repository]
recipe = slapos.recipe.build:gitclone
repository = https://lab.nexedi.com/nexedi/slapos.git
branch = master
git-executable = ${git:location}/bin/git

[slapos.core-repository]
recipe = slapos.recipe.build:gitclone
repository = https://lab.nexedi.com/nexedi/slapos.core.git
branch = master
git-executable = ${git:location}/bin/git

[slapos.recipe.maarch-repository]
recipe = slapos.recipe.build:gitclone
repository = https://lab.nexedi.com/nexedi/slapos.recipe.maarch.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.core.egg-link &&
  grep parts ${buildout:develop-eggs-directory}/slapos.toolbox.egg-link &&
  grep parts ${buildout:develop-eggs-directory}/slapos.recipe.maarch.egg-link


# Unpin versions, in case they have been pinned in software.cfg
[versions]
slapos.cookbook =
slapos.toolbox =
slapos.core =
slapos.recipe.maarch =

