software.cfg 5.14 KB
Newer Older
1 2
[buildout]
develop =
Łukasz Nowak's avatar
Łukasz Nowak committed
3
  ${:parts-directory}/bef_erp5-recipe
4
  ${:parts-directory}/z2loganalyser
Łukasz Nowak's avatar
Łukasz Nowak committed
5

6
extends =
Łukasz Nowak's avatar
Łukasz Nowak committed
7
  ../../component/mysql-tritonn-5.0/buildout.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
8
  ../../component/gzip/buildout.cfg
Romain Courteaud's avatar
Romain Courteaud committed
9
  ../../component/maatkit/buildout.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
10
  ../erp5/software.cfg
11 12 13 14 15

parts +=
  mysql-tritonn-5.0
  products-bef
  products-upgrade
Romain Courteaud's avatar
Romain Courteaud committed
16 17
  bt5-bef
  bt5-repository
18
  checkrecipe
19
  checkz2loganalyser
20
  maatkit
21 22 23 24 25 26

[eggs]
# Just so buildout executes [bef_erp5-recipe] before [eggs], as
# - [eggs] references [bef_erp5-recipe]
# - [instance-recipe] needs [bef_erp5-recipe] to be finished
# - we cannot rely on anything else being executed before [eggs]
27 28 29
bef_dummy =
  ${bef_erp5-recipe:location}
  ${z2loganalyser:location}
Łukasz Nowak's avatar
Łukasz Nowak committed
30 31 32 33 34 35 36

# XXX: Workaround for hack;
# slapos.core is added, as even if it is defined as dependency in bef_erp5-recipe
# it is not being fetched, maybe because of using this crazy hack.
# Note: Possibly everything from setup.py shall be done in same way.
eggs +=
  slapos.core
37
  z2loganalyser
Łukasz Nowak's avatar
Łukasz Nowak committed
38

39 40 41 42 43
extra-paths +=
  ${products-erp5:location}

[template]
url = ${:_profile_base_location_}/instance.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
44
md5sum = 73b41ac7f8a03aaebc53657d25d6c46c
45

46
[eggcheck]
47 48 49
recipe = plone.recipe.command
stop-on-error = true
update-command = ${:command}
50 51 52 53 54 55 56 57 58
command = grep parts ${buildout:develop-eggs-directory}/${:egg}.egg-link

[checkrecipe]
<= eggcheck
egg = slapos.cookbook

[checkz2loganalyser]
<= eggcheck
egg = z2loganalyser
59

60
[instance-recipe]
Łukasz Nowak's avatar
Łukasz Nowak committed
61 62
egg = slapos.cookbook
module = bef_erp5
63

64 65 66 67 68 69 70 71 72 73
[z2loganalyser]
recipe = plone.recipe.command
svn_param =--trust-server-cert --no-auth-cache --non-interactive --quiet -r 45666
svn = ${subversion:location}/bin/svn
location = ${buildout:parts-directory}/${:_buildout_section_name_}
stop-on-error = true
update-command = ${:command}
command =
  ${:svn} checkout ${:svn_param} https://svn.erp5.org/repos/public/erp5/trunk/utils/z2loganalyser/ ${:location} || exit 1

74 75 76 77 78
[bef-svn-template]
# Recipe infrae.subversion is using svn command under the hood, but there is
# no way to pass --trust-server-cert --non-interactive, so in 2.12 falvour
# it is better to evaluate usage of provided subversion command
recipe = plone.recipe.command
Romain Courteaud's avatar
Romain Courteaud committed
79
svn_param =--trust-server-cert --no-auth-cache --non-interactive --quiet --username saneftestbot --password kucahS5oav6jahch -r 5114
80 81 82 83 84
svn = ${subversion:location}/bin/svn
location = ${buildout:parts-directory}/${:_buildout_section_name_}
stop-on-error = true
update-command = ${:command}

Romain Courteaud's avatar
Romain Courteaud committed
85 86 87 88
[bt5-repository]
recipe = plone.recipe.command
stop-on-error = true
command =
89
  ${buildout:executable} ${erp5:location}/product/ERP5/bin/genbt5list ${erp5:location}/product/ERP5/bootstrap ${erp5:location}/bt5 ${bt5-bef:location}
Romain Courteaud's avatar
Romain Courteaud committed
90 91 92
update-command = ${:command}
  

Romain Courteaud's avatar
Romain Courteaud committed
93 94 95 96 97
[bt5-bef]
<= bef-svn-template
command =
  ${:svn} checkout ${:svn_param} https://svn.erp5.org/repos/sanef/trunk/bt5 ${:location} || exit 1

98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
[products-bef]
<= bef-svn-template
product_list = SANEF
command =
  for product in SANEF ; do ${:svn} checkout ${:svn_param} https://svn.erp5.org/repos/sanef/trunk/products/$product ${:location}/$product || exit 1 ; done

[products-upgrade]
# Recipe infrae.subversion is using svn command under the hood, but there is
# no way to pass --trust-server-cert --non-interactive, so in 2.12 falvour
# it is better to evaluate usage of provided subversion command
recipe = plone.recipe.command
svn_param =--trust-server-cert --no-auth-cache --non-interactive --quiet
location = ${buildout:parts-directory}/${:_buildout_section_name_}
stop-on-error = true
update-command = ${:command}
product_list = ERP5PropertySheetLegacy
command =
  for product in ERP5PropertySheetLegacy ; do ${subversion:location}/bin/svn checkout ${:svn_param} https://svn.erp5.org/repos/public/erp5/trunk/obsolete/products/$product ${:location}/$product || exit 1 ; done

Łukasz Nowak's avatar
Łukasz Nowak committed
117 118 119 120 121 122 123 124 125
[erp5]
recipe = plone.recipe.command
location = ${buildout:parts-directory}/${:_buildout_section_name_}
stop-on-error = true
repository = https://saneftestbot:kucahS5oav6jahch@git.erp5.org/repos/erp5/sanef.git
branch = master
command = ${git:location}/bin/git clone --quiet -b ${:branch} ${:repository} ${:location}
update-command =

126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
[products-erp5]
recipe = plone.recipe.command
stop-on-error = true
location = ${buildout:parts-directory}/${:_buildout_section_name_}
update-command = ${:command}
command =
  mkdir -p ${:location}/Products &&
  for product in ${erp5:location}/product/* ; do ln -fs $product ${:location}/Products ; done &&
  echo "__import__('pkg_resources').declare_namespace(__name__)" > "${:location}/Products/__init__.py"

[products]
# XXX: Lack of eggification workaround
# list of products, possible to extend, it is passed in reversed way
# to allow overriding during extending profile
list = ${products-deps:location} ${products-upgrade:location} ${products-bef:location}

[bef_erp5-recipe]
Łukasz Nowak's avatar
Łukasz Nowak committed
143 144
recipe = plone.recipe.command
stop-on-error = true
Łukasz Nowak's avatar
Łukasz Nowak committed
145
location = ${buildout:parts-directory}/${:_buildout_section_name_}
Łukasz Nowak's avatar
Łukasz Nowak committed
146 147 148
# Note: GIT_SSL_NO_VERIFY is used as SlapOS OpenSSL configuration does not
# contain master certificates to verify.
command = GIT_SSL_NO_VERIFY=1 ${git:location}/bin/git clone --quiet https://saneftestbot:kucahS5oav6jahch@git.erp5.org/repos/slapos/sanef.git ${:location}
149
update-command = cd ${:location} && GIT_SSL_NO_VERIFY=1 ${git:location}/bin/git pull --quiet