horizon/playbooks/horizon-nodejs/pre.yaml
Akihiro Motoki 5dd94f6598 npm job: Add 'nodejs' bindep profile
During the focal migration, npm jobs in some plugins requires
extra packages like libfontconfig. They are specific to npm jobs,
so it would be nice to have a dedicated bindep profile (as 'test'
profile is too general for this purpose). horizon job definition
provides a common layer for the npm jobs, so we decide to add a
task to the job definition in the horizon repo. Each plugin can
add packages with 'nodejs' profile in its bindep.txt if needed.

Change-Id: I5eac6b1c724e9b21a78fda5ba41002224dd9b356
2020-09-02 19:14:18 +09:00

11 lines
379 B
YAML

- hosts: all
roles:
# package.json needs to run 'tox' as command, ensure that it's
# installed and can be used globally.
- role: ensure-tox
ensure_global_symlinks: True
# nodejs jobs in some horizon plugins requires extra packages in the jobs.
# It is nice to define a specific bindep profile for them.
- role: bindep
bindep_profile: nodejs