Merge remote-tracking branch 'origin/gitweb'
[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}"; python setup.py test -n; python setup.py test -n; python setup.py test -n; 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 [erp5-util]
48 <= download-source
49 repository = ${erp5-util-repository:location}
50
51 [erp5.util-setup]
52 recipe = plone.recipe.command
53 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}"; python setup.py test -n; python setup.py test -n; python setup.py test -n; python setup.py test -n; python setup.py test -n 
54 update-command = $${:command}
55
56 [officejs]
57 <= download-source
58 repository = ${officejs-repository:location}
59
60 [jio]
61 <= download-source
62 repository = ${jio-repository:location}
63
64 [slapos-test-runner]
65 recipe = slapos.cookbook:egg_test
66 run-test-suite = $${create-directory:bin}/runTestSuite
67 run-test-suite-binary = ${buildout:bin-directory}/runTestSuite
68 # The list of executables should be defined here and a combination
69 # of tests should dynamically generated.
70 #python-list = $${}
71 test-list =
72   $${slapos.core:location}
73   $${slapos.package:location}
74   $${slapos.recipe.template:location}
75   $${slapos.recipe.build:location}
76   $${erp5-util:location}
77   $${jio:location}
78   $${officejs:location}
79 prepend-path = ${git:location}/bin:${libxslt:location}/bin:${python2.7:location}/bin
80 environment = environment
81
82 [environment]
83 CPPFLAGS = -I${python2.7:location}/include/python2.7 -I${libxml2:location}/include -I${libxslt:location}/include
84 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
85 LD_LIBRARY_PATH = ${python2.7:location}/lib:${libxml2:location}/lib:${libxslt:location}/lib:${libxslt:location}/lib:${zlib:location}/lib
86 PYTHONPATH = ${python-setuptools:pythonpath}
87
88 [sh-environment]
89 # Section exposes testing default environment as sh file. It is thus easy
90 # to directly develop and test the egg inside of this instance.
91 recipe = collective.recipe.template
92 input = inline:
93   export PATH="$${slapos-test-runner:prepend-path}:$PATH"
94   export CPPFLAGS="$${environment:CPPFLAGS}"
95   export LDFLAGS="$${environment:LDFLAGS}"
96   export PYTHONPATH="$${environment:PYTHONPATH}"
97   export PS1="[slapos-testing env Active] $PS1"
98 output = $${create-directory:bin}/environment.sh
99 mode = 755
100
101 [phantomjs-wrapper]
102 recipe = slapos.cookbook:wrapper
103 command-line = ${phantomjs:location}/phantomjs-slapos
104 wrapper-path = $${create-directory:bin}/phantomjs
105 parameters-extra = true