zuul-jobs/roles/yarn/tasks/main.yaml
James E. Blair 54dd1db16e Remove "--verbose" from yarn commands
This apparently gets passed to the subcommand, which may not
support a "--verbose" argument.

Change-Id: I8326403ea01f0121f6ff14c10d2cd1e4e7ca7c70
2019-02-08 14:23:01 -08:00

25 lines
767 B
YAML

- name: Require yarn_command variable
fail:
msg: yarn_command is required for this role
when: yarn_command is not defined
- name: Run yarn lifecycle command
when: yarn_command in yarn_lifecycle_phases
command: "yarn {{ yarn_command }}"
# Need to set DISPLAY to the value that will be set when the virtual
# framebuffer is set up for doing browser tests.
environment:
DISPLAY: ':99'
args:
chdir: "{{ zuul_work_dir }}"
- name: Run yarn custom command
when: yarn_command not in yarn_lifecycle_phases
command: "yarn run {{ yarn_command }}"
# Need to set DISPLAY to the value that will be set when the virtual
# framebuffer is set up for doing browser tests.
environment:
DISPLAY: ':99'
args:
chdir: "{{ zuul_work_dir }}"