instance.cfg 2.84 KB
Newer Older
1
[buildout]
2 3
parts =
  slapos.core-setup
4
  slapos-test-runner
5
  sh-environment
6 7 8 9 10

eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true

11 12
[create-directory]
recipe = slapos.cookbook:mkdirectory
13
bin = $${buildout:directory}/bin
14 15 16 17
etc = $${buildout:directory}/etc
services = $${:etc}/run
srv = $${buildout:directory}/srv
source-code = $${:srv}/eggs-source-code
Rafael Monnerat's avatar
Rafael Monnerat committed
18

19 20 21
[download-source]
recipe = slapos.recipe.build:gitclone
git-executable = ${git:location}/bin/git
Rafael Monnerat's avatar
Rafael Monnerat committed
22 23 24 25 26 27

# Local development
[slapos.core]
<= download-source
repository = ${slapos.core-repository:location}

28 29 30 31 32 33
[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}


Rafael Monnerat's avatar
Rafael Monnerat committed
34 35 36 37
[slapos.recipe.template]
<= download-source
repository = ${slapos.recipe.template-repository:location}

38 39 40 41
[slapos.recipe.build]
<= download-source
repository = ${slapos.recipe.build-repository:location}

42
[slapos-test-runner]
Rafael Monnerat's avatar
Rafael Monnerat committed
43
recipe = slapos.cookbook:egg_test
44
run-test-suite = $${create-directory:bin}/runTestSuite
Rafael Monnerat's avatar
Rafael Monnerat committed
45 46 47 48
run-test-suite-binary = ${buildout:bin-directory}/runTestSuite
# The list of executables should be defined here and a combination
# of tests should dynamically generated.
#python-list = $${}
49 50 51 52
test-list =
  $${slapos.core:location}
  $${slapos.recipe.template:location}
  $${slapos.recipe.build:location}
53
prepend-path = ${git:location}/bin:${libxslt:location}/bin:${python2.7:location}/bin
54 55 56 57
environment = environment

[environment]
CPPFLAGS = -I${python2.7:location}/include/python2.7 -I${libxml2:location}/include -I${libxslt:location}/include
58
LDFLAGS = -L${python2.7:location}/lib -L${libxml2:location}/lib -L${libxslt:location}/lib -L${libxslt:location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib -Wl,-rpath=${python2.7:location}/lib -Wl,-rpath=${libxml2:location}/lib -Wl,-rpath=${libxslt:location}/lib -Wl,-rpath=${zlib:location}/lib
59
LD_LIBRARY_PATH = ${python2.7:location}/lib:${libxml2:location}/lib:${libxslt:location}/lib:${libxslt:location}/lib:${zlib:location}/lib
60
PYTHONPATH = ${python-setuptools:pythonpath}
61 62 63 64 65 66 67 68 69 70 71 72

[sh-environment]
# Section exposes testing default environment as sh file. It is thus easy
# to directly develop and test the egg inside of this instance.
recipe = collective.recipe.template
input = inline:
  export PATH="$${slapos-test-runner:prepend-path}:$PATH"
  export CPPFLAGS="$${environment:CPPFLAGS}"
  export LDFLAGS="$${environment:LDFLAGS}"
  export PYTHONPATH="$${environment:PYTHONPATH}"
  export PS1="[slapos-testing env Active] $PS1"
output = $${create-directory:bin}/environment.sh
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
73
mode = 755