Commit 521f1f70 authored by Eric Zheng's avatar Eric Zheng

component/headless-chromium: create test version for faster development

parent 7b512a88
# This is a dummy version that fetches a precompiled binary, to
# facilitate testing. This way, we can test software/headless-chromium
# without having to wait for component/headless-chromium to finish
# compiling each time. This component will be deleted before the merge
# request is finalized.
[buildout]
extends =
../wget/buildout.cfg
../nss/buildout.cfg
../nspr/buildout.cfg
parts =
chromium-wrapper
[chromium]
recipe = plone.recipe.command
path = ${buildout:parts-directory}/${:_buildout_section_name_}
command =
mkdir -p ${:path}
cd ${:path}
wget http://www.contrib.andrew.cmu.edu/~ericzhen/hc
environment =
PATH=%(PATH)s:${wget:location}/bin
library-path = ${nspr:location}/lib:${nss:location}/lib
# Create a wrapper at bin/headless-chromium.
# TODO: we might need to explicitly set LD_LIBRARY_PATH since nss and
# nspr are not where they were when the executable was built?
[chromium-wrapper]
recipe = slapos.cookbook:wrapper
command-line = LD_LIBRARY_PATH=${chromium:library-path} && ${chromium:path}/hc
wrapper-path = ${buildout:bin-directory}/headless-chromium
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment