a08002fd44
Some javascript projects use yarn for dependencies instead of raw npm. If a yarn.lock file is detected in the zuul_work_dir, install yarn and use yarn to install dependencies. Needed-By: I5864e1b2f9952fbc35b08ebdef348c4917564c37 Change-Id: I9ae7dd3b33b2b607c1c5a17632e2aeb12e339d15
14 lines
352 B
YAML
14 lines
352 B
YAML
- hosts: all
|
|
roles:
|
|
- role: bindep
|
|
bindep_profile: test
|
|
bindep_dir: "{{ zuul_work_dir }}"
|
|
- test-setup
|
|
- install-nodejs
|
|
- install-yarn
|
|
# nodejs-test-dependencies requires sudo,
|
|
# so we cannot inherit pre.yaml from javascript-base.
|
|
- nodejs-test-dependencies
|
|
- revoke-sudo
|
|
- install-javascript-packages
|