# SlapOS software release to test wendelin.core on Nexedi testing infrastructure.
# Common parts.

[buildout]
extends =
# test*.cfg first extend from neoppod/software<ZODB-flavour>.cfg to use
# appropriate ZODB and versions of other components.

    ../pytest/buildout.cfg
    ../gdb/buildout.cfg
    ../../stack/nxdtest.cfg
    buildout.cfg

parts =
# keep neoppod first and in parts so that ZODB is built correctly
    neoppod

    wendelin.core

#   for instance
    wendelin.core-python
    slapos-cookbook
    instance.cfg


# bin/python s python interpreter with wendelin.core and all other eggs.
[wendelin.core-python]
<= python-interpreter
eggs =
    wendelin.core[test]
    pygolang[pyx.build]
    neoppod[tests]
    ZEO[test]

# env.sh for that python + go to be on $PATH
[wendelin.core-env.sh]
recipe   = slapos.recipe.template:jinja2
rendered = ${buildout:directory}/${:_buildout_section_name_}
template = inline:
  . ${gowork:env.sh}
  export PS1="(wendelin.core-env) $PS1"
  export PATH=${buildout:bin-directory}:${gdb:location}/bin:$PATH

# instance to run nxdtest.
[instance.cfg]
<= jinja2-template
template = inline:
  [buildout]
  extends = ${nxdtest-instance.cfg:rendered}

  [runTestSuite]
  env.sh  = ${wendelin.core-env.sh:rendered}
  workdir = ${wendelin.core-repository:location}


[versions]
neoppod = 1.12.0

zope.testrunner = 5.2
random2 = 1.0.1
manuel = 1.10.1
