Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Eric Zheng
slapos
Commits
521f1f70
Commit
521f1f70
authored
Jul 15, 2021
by
Eric Zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
component/headless-chromium: create test version for faster development
parent
7b512a88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
component/headless-chromium-test/buildout.cfg
component/headless-chromium-test/buildout.cfg
+33
-0
No files found.
component/headless-chromium-test/buildout.cfg
0 → 100644
View file @
521f1f70
# 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment