instance.cfg 3.22 KB
Newer Older
1
[buildout]
2
parts =
3
  phantomjs-wrapper
4 5 6 7 8 9
  slapos-test-runner

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

10 11 12 13 14 15 16 17
[slap-configuration]
recipe = slapos.cookbook:slapconfiguration
computer = $${slap-connection:computer-id}
partition = $${slap-connection:partition-id}
url = $${slap-connection:server-url}
key = $${slap-connection:key-file}
cert = $${slap-connection:cert-file}

18 19
[create-directory]
recipe = slapos.cookbook:mkdirectory
20
bin = $${buildout:directory}/bin
21 22 23
etc = $${buildout:directory}/etc
services = $${:etc}/run
srv = $${buildout:directory}/srv
Rafael Monnerat's avatar
Rafael Monnerat committed
24

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

29 30 31 32
[kedifa]
<= download-source
repository = ${kedifa-repository:location}

33 34 35 36
[caucase]
<= download-source
repository = ${caucase-repository:location}

37 38 39 40
[slapos.libnetworkcache]
<= download-source
repository = ${slapos.libnetworkcache-repository:location}

41 42 43 44
[erp5.util]
<= download-source
repository = ${erp5.util-repository:location}

45 46 47 48
[slapos.cookbook]
<= download-source
repository = ${slapos.cookbook-repository:location}

49
[slapos.core]
Rafael Monnerat's avatar
Rafael Monnerat committed
50
<= download-source
51
repository = ${slapos.core-repository:location}
Rafael Monnerat's avatar
Rafael Monnerat committed
52

53 54 55 56
[slapos.recipe.build]
<= download-source
repository = ${slapos.recipe.build-repository:location}

57 58 59 60
[slapos.recipe.cmmi]
<= download-source
repository = ${slapos.recipe.cmmi-repository:location}

61
[slapos.recipe.template]
62
<= download-source
63
repository = ${slapos.recipe.template-repository:location}
64

65
[slapos.toolbox]
66
<= download-source
67
repository = ${slapos.toolbox-repository:location}
68

69 70 71 72
[slapos.rebootstrap]
<= download-source
repository = ${slapos.rebootstrap-repository:location}

73

74
[slapos-test-runner]
75 76 77 78 79
recipe = slapos.cookbook:wrapper
wrapper-path = $${create-directory:bin}/runTestSuite
command-line =
  ${buildout:bin-directory}/runTestSuite
  --python_interpreter=${buildout:bin-directory}/${eggs:interpreter}
80
  --source_code_path_list=$${kedifa:location},$${caucase:location},$${erp5.util:location},$${slapos.cookbook:location},$${slapos.core:location},$${slapos.recipe.build:location},$${slapos.recipe.cmmi:location},$${slapos.recipe.template:location},$${slapos.toolbox:location},$${slapos.libnetworkcache:location},$${slapos.rebootstrap:location}
81 82 83 84 85 86

# Notes about environment:
# * slapos.cookbook:wrapper does not seem to allow "extending" PATH. Tests
#   needs ping, which is a setuid binary that cannot be installed via slapos
#   way of building software without root access, so we keep "standard"
#   /usr/bin and /bin in $PATH
87 88 89
# * SLAPOS_TEST_environment is safe to be used by tests, but there is no
#   guarantee about free ports on IPV4 and IPV6
# * LOCAL_IPV4 is backward compatible, to be migrated, SLAPOS_TEST_IPV4
90
environment =
91
  PATH=${coreutils:location}/bin:${curl:location}/bin:${openssl:location}/bin:${git:location}/bin:${libxslt:location}/bin:${socat:location}/bin:${lmsensors:location}/bin:${buildout:bin-directory}:/usr/bin/:/bin/
92
  LOCAL_IPV4=$${slap-configuration:ipv4-random}
93 94
  SLAPOS_TEST_IPV4=$${slap-configuration:ipv4-random}
  SLAPOS_TEST_IPV6=$${slap-configuration:ipv6-random}
95

96 97 98 99

[phantomjs-wrapper]
recipe = slapos.cookbook:wrapper
command-line = ${phantomjs:location}/phantomjs-slapos
100
wrapper-path = $${create-directory:bin}/phantomjs