software.cfg 1.63 KB
Newer Older
1 2
# Selenium runner, helper software for erp5testnode.
#
3 4 5 6
# Seleniumrunner responsability is to install Xvfb as
# ${buildout:parts-directory}/xserver/bin/Xvfb, a default firefox as
# ${buildout:bin-directory}/firefox and a geckodriver as
# ${buildout:bin-directory}/geckodriver for erp5testnode.
7

8
[buildout]
9
extends =
10
   ../../component/xorg/buildout.cfg
11
   ../../component/firefox/buildout.cfg
12
   ../../component/ffmpeg/buildout.cfg
13
   ../../component/coreutils/buildout.cfg
14
   ../../component/fonts/buildout.cfg
15
   ../../stack/slapos.cfg
16
   ./buildout.hash.cfg
17 18

parts =
19
   slapos-cookbook
20
   template
21
   xserver
22
   ffmpeg
23
   firefox-wrapper
24
   geckodriver
25

26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
# XXX firefox 68 does not seem to honor <dir> from fontconfig's
# fonts.conf and only loads from system locations and from the
# fonts folder located in firefox part, so we copy (actually, symlink)
# some fonts there, otherwise firefox cannot find its standard fonts.
[symlink-extra-fonts-to-firefox-fonts-dir]
extra-fonts =
  ${android-fonts:location}
  ${dejavu-fonts:location}
  ${ipa-fonts:location}
  ${ipaex-fonts:location}
  ${liberation-fonts:location}
  ${ocrb-fonts:location}
install =
  import os
  for extra_font_dir in '''${:extra-fonts}'''.splitlines():
    dst = os.path.join(location, 'fonts', os.path.basename(extra_font_dir))
    os.symlink(extra_font_dir, dst)

[firefox]
post-install =
  ${symlink-extra-fonts-to-firefox-fonts-dir:install}
47 48

[macro-template]
49
recipe = slapos.recipe.template
50
url = ${:_profile_base_location_}/${:filename}
51 52
mode = 0644

53 54 55 56
[template]
<= macro-template
output = ${buildout:directory}/template.cfg

57
[versions]
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
58
plone.recipe.command = 1.1
59
slapos.recipe.template = 4.4