software.cfg 2.14 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
# Selenium server
# https://seleniumhq.github.io/docs/grid.html

[buildout]
extends =
   ../../component/xorg/buildout.cfg
   ../../component/lxml-python/buildout.cfg
   ../../component/firefox/buildout.cfg
   ../../component/chromium/buildout.cfg
   ../../component/chromedriver/buildout.cfg
   ../../component/coreutils/buildout.cfg
   ../../component/java/buildout.cfg
   ../../component/caddy/buildout.cfg
   ../../component/openssh/buildout.cfg
15 16
   ../../component/fonts/buildout.cfg
   ../../component/fontconfig/buildout.cfg
17 18
   ../../stack/slapos.cfg
   ./buildout.hash.cfg
19
   ../../stack/monitor/buildout.cfg
20 21

parts =
22 23 24 25 26 27
  slapos-cookbook
  collective.recipe.shelloutput
  template

[collective.recipe.shelloutput]
recipe = zc.recipe.egg
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48

[selenium-server]
recipe = slapos.recipe.build:download
version = 3.14.0
md5sum = 376450bd517510442b60018646deadfe
filename = selenium-server-standalone-${:version}.jar
url = https://selenium-release.storage.googleapis.com/3.14/${:filename}

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

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

[template-selenium]
<= macro-template
output = ${buildout:directory}/template-selenium.cfg

49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75

# XXX firefox 62 and firefox 68 does not seem to honor <dir> from
# 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-60]
post-install =
  ${symlink-extra-fonts-to-firefox-fonts-dir:install}

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

76 77 78
[firefox-78]
post-install =
  ${symlink-extra-fonts-to-firefox-fonts-dir:install}