slapos-testing: Use explicitly the python provided by the buildout
[slapos.git] / software / slapos-testing / instance.cfg
1 [buildout]
2 parts =
3   slapos.core-setup
4   erp5.util-setup
5   phantomjs-wrapper
6   slapos-test-runner
7   sh-environment
8
9 eggs-directory = ${buildout:eggs-directory}
10 develop-eggs-directory = ${buildout:develop-eggs-directory}
11 offline = true
12
13 [create-directory]
14 recipe = slapos.cookbook:mkdirectory
15 bin = $${buildout:directory}/bin
16 etc = $${buildout:directory}/etc
17 services = $${:etc}/run
18 srv = $${buildout:directory}/srv
19 source-code = $${:srv}/eggs-source-code
20
21 [download-source]
22 recipe = slapos.recipe.build:gitclone
23 git-executable = ${git:location}/bin/git
24
25 # Local development
26 [slapos.core]
27 <= download-source
28 repository = ${slapos.core-repository:location}
29
30 [slapos.core-setup]
31 recipe = plone.recipe.command
32 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}"; ${python2.7:location}/bin/python setup.py test -n; ${python2.7:location}/bin/python setup.py test -n; ${python2.7:location}/bin/python setup.py test -n; ${python2.7:location}/bin/python setup.py test -n 
33 update-command = $${:command}
34
35 [slapos.package]
36 <= download-source
37 repository = ${slapos.package-repository:location}
38
39 [slapos.recipe.template]
40 <= download-source
41 repository = ${slapos.recipe.template-repository:location}
42
43 [slapos.recipe.build]
44 <= download-source
45 repository = ${slapos.recipe.build-repository:location}
46
47 [slapos.recipe.cmmi]
48 <= download-source
49 repository = ${slapos.recipe.cmmi-repository:location}
50
51 [erp5-util]
52 <= download-source
53 repository = ${erp5-util-repository:location}
54
55 [erp5.util-setup]
56 recipe = plone.recipe.command
57 command = echo "Updating setup...";cd $${erp5-util:location}; export PATH="$${slapos-test-runner:prepend-path}:$PATH"; export CPPFLAGS="$${environment:CPPFLAGS}"; export LDFLAGS="$${environment:LDFLAGS}"; export PYTHONPATH="$${environment:PYTHONPATH}"; ${python2.7:location}/bin/python setup.py test -n; ${python2.7:location}/bin/python setup.py test -n; ${python2.7:location}/bin/python setup.py test -n; ${python2.7:location}/bin/python setup.py test -n; ${python2.7:location}/bin/python setup.py test -n 
58 update-command = $${:command}
59
60 [officejs]
61 <= download-source
62 repository = ${officejs-repository:location}
63
64 [jio]
65 <= download-source
66 repository = ${jio-repository:location}
67
68 [slapos-test-runner]
69 recipe = slapos.cookbook:egg_test
70 run-test-suite = $${create-directory:bin}/runTestSuite
71 run-test-suite-binary = ${buildout:bin-directory}/runTestSuite
72 # The list of executables should be defined here and a combination
73 # of tests should dynamically generated.
74 #python-list = $${}
75 test-list =
76   $${slapos.core:location}
77   $${slapos.package:location}
78   $${slapos.recipe.template:location}
79   $${slapos.recipe.build:location}
80   $${slapos.recipe.cmmi:location}
81   $${erp5-util:location}
82   $${jio:location}
83   $${officejs:location}
84 prepend-path = ${git:location}/bin:${libxslt:location}/bin:${python2.7:location}/bin
85 environment = environment
86
87 [environment]
88 CPPFLAGS = -I${python2.7:location}/include/python2.7 -I${libxml2:location}/include -I${libxslt:location}/include
89 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
90 LD_LIBRARY_PATH = ${python2.7:location}/lib:${libxml2:location}/lib:${libxslt:location}/lib:${libxslt:location}/lib:${zlib:location}/lib
91 PYTHONPATH = ${python-setuptools:pythonpath}:${buildout:eggs-directory}
92
93 [sh-environment]
94 # Section exposes testing default environment as sh file. It is thus easy
95 # to directly develop and test the egg inside of this instance.
96 recipe = collective.recipe.template
97 input = inline:
98   export PATH="$${slapos-test-runner:prepend-path}:$PATH"
99   export CPPFLAGS="$${environment:CPPFLAGS}"
100   export LDFLAGS="$${environment:LDFLAGS}"
101   export PYTHONPATH="$${environment:PYTHONPATH}"
102   export PS1="[slapos-testing env Active] $PS1"
103 output = $${create-directory:bin}/environment.sh
104 mode = 755
105
106 [phantomjs-wrapper]
107 recipe = slapos.cookbook:wrapper
108 command-line = ${phantomjs:location}/phantomjs-slapos
109 wrapper-path = $${create-directory:bin}/phantomjs
110 parameters-extra = true