• Jérome Perrin's avatar
    software/jstestnode: unify access to selenium server · dc50c648
    Jérome Perrin authored
    This is a backward incompatible parameter change.
    
    for example to run on saucelabs, instead of:
      {
        "target": "iOS",
        "target-version": "11.3",
        "target-device": "iPhone Simulator",
        "target-browser": "Safari",
        "appium-server-auth": "username:auth-token",
        "test-suite" : "renderjs",
        "remote-access-url": "https://softinst1234.host.vifib.net"
      }
    we now use:
      {
        "target": "selenium-server",
        "desired-capabilities": {
          "platformName": "iOS",
          "browserName": "Safari",
          "platformVersion": "11.3",
          "deviceName": "iPhone Simulator"
        },
        "server-url": "https://username:auth-token@ondemand.saucelabs.com/wd/hub",
        "test-suite": "renderjs",
        "remote-access-url": "https://softinst106116.host.vifib.net"
      }
    
    To run locally empty parameters are still OK.
    dc50c648
software.cfg 3.21 KB
[buildout]
extends =
  ../../stack/slapos.cfg
  ../../stack/nodejs.cfg
  ../../component/coreutils/buildout.cfg
  ../../component/git/buildout.cfg
  ../../component/xorg/buildout.cfg
  ../../component/firefox/buildout.cfg
  ../../component/dash/buildout.cfg
  ../../component/nginx/buildout.cfg
  ../../component/openssl/buildout.cfg
  ../../component/curl/buildout.cfg
  ./buildout.hash.cfg

parts =
  slapos-cookbook
  nodejs
  git
  eggs
  xserver
  firefox
  xwd
  renderjs-install
  jio-install
  nginx
  openssl
  instance

[nodejs]
<= nodejs-8.6.0

[nodejs-output]
<= nodejs-8.6.0-output

[eggs]
recipe = zc.recipe.egg
eggs =
  erp5.util
  urllib3[secure]
  selenium
  ${lxml-python:egg}
interpreter = pythonwitheggs

[renderjs-repository.git]
recipe = slapos.recipe.build:gitclone
repository = https://lab.nexedi.com/nexedi/renderjs.git
branch = master
git-executable = ${git:location}/bin/git
develop = true

[renderjs-install]
recipe = plone.recipe.command
stop-on-error = true
command = cd ${renderjs-repository.git:location} && PATH=${git:location}/bin/:${nodejs:location}/bin/:$PATH ${nodejs-output:npm} install . && PATH=${git:location}/bin/:${nodejs:location}/bin/:$PATH ./node_modules/grunt-cli/bin/grunt
update-command = ${:command}

[jio-repository.git]
recipe = slapos.recipe.build:gitclone
repository = https://lab.nexedi.com/nexedi/jio.git
branch = master
git-executable = ${git:location}/bin/git
develop = true

[jio-install]
recipe = plone.recipe.command
stop-on-error = true
command = cd ${jio-repository.git:location} && PATH=${git:location}/bin/:${nodejs:location}/bin/:$PATH ${nodejs:location}/bin/npm install jslint@0.9.2 jison@0.4.16 git://github.com/qunitjs/node-qunit.git#v0.9.3 sinon@1.7.3 && PATH=${curl:location}/bin/:${nodejs:location}/bin/:$PATH make
update-command = ${:command}

[rsvp-repository.git]
recipe = slapos.recipe.build:gitclone
repository = https://lab.nexedi.com/nexedi/rsvp.js.git
branch = master
git-executable = ${git:location}/bin/git
develop = true

[rsvp-install]
recipe = plone.recipe.command
stop-on-error = true
command = cd ${rsvp-repository.git:location} && PATH=${git:location}/bin/:${nodejs:location}/bin/:$PATH ${nodejs:location}/bin/npm install .
update-command = ${:command}

[uritemplate-repository.git]
recipe = slapos.recipe.build:gitclone
repository = https://lab.nexedi.com/nexedi/uritemplate-js.git
branch = master
git-executable = ${git:location}/bin/git
develop = true

[uritemplate-install]
recipe = plone.recipe.command
stop-on-error = true
command = cd ${uritemplate-repository.git:location} && PATH=${git:location}/bin/:${nodejs:location}/bin/:$PATH ${nodejs:location}/bin/npm install .
update-command = ${:command}

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

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

[template-nginx-service]
<= macro-template
output = ${buildout:directory}/template-nginx-service.sh.in

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

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

[versions]
erp5.util = 0.4.51
slapos.recipe.template = 4.3
selenium = 3.14.1
urllib3 = 1.24
certifi = 2018.10.15