Move revoke-sudo from unittest pre to job run
Having revoke-sudo in the pre playbook of unittest has made us not able to re-use unittest for javascript, and also means we can't use nodejs-npm for nodejs-npm-run-test, which is a bit odd. Instead, add the role to the run playbook for tox and npm, which allows us to stack and combine things a bit better. Change-Id: I0c7c508996ad2647db706d4ebf156c5dd96bf9b5
This commit is contained in:
parent
af67099a29
commit
6d8d1a4408
@ -1,13 +1,3 @@
|
|||||||
- hosts: all
|
- hosts: all
|
||||||
roles:
|
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
|
- nodejs-test-dependencies
|
||||||
- revoke-sudo
|
|
||||||
- install-javascript-packages
|
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
- hosts: all
|
- hosts: all
|
||||||
roles:
|
roles:
|
||||||
- role: bindep
|
|
||||||
bindep_profile: test
|
|
||||||
bindep_dir: "{{ zuul_work_dir }}"
|
|
||||||
- test-setup
|
|
||||||
- install-nodejs
|
- install-nodejs
|
||||||
- install-yarn
|
- install-yarn
|
||||||
- revoke-sudo
|
|
||||||
- install-javascript-packages
|
- install-javascript-packages
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
- hosts: all
|
- hosts: all
|
||||||
roles:
|
roles:
|
||||||
|
- revoke-sudo
|
||||||
- npm
|
- npm
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
- hosts: all
|
- hosts: all
|
||||||
roles:
|
roles:
|
||||||
|
- revoke-sudo
|
||||||
- tox
|
- tox
|
||||||
|
@ -3,4 +3,3 @@
|
|||||||
- role: bindep
|
- role: bindep
|
||||||
bindep_dir: "{{ zuul_work_dir }}"
|
bindep_dir: "{{ zuul_work_dir }}"
|
||||||
- test-setup
|
- test-setup
|
||||||
- revoke-sudo
|
|
||||||
|
@ -237,6 +237,7 @@
|
|||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: nodejs-npm
|
name: nodejs-npm
|
||||||
|
parent: unittests
|
||||||
description: |
|
description: |
|
||||||
Base job for javascript operations
|
Base job for javascript operations
|
||||||
|
|
||||||
@ -323,6 +324,7 @@
|
|||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: nodejs-npm-run-test
|
name: nodejs-npm-run-test
|
||||||
|
parent: nodejs-npm
|
||||||
description: |
|
description: |
|
||||||
Run test using nodejs. This test also starts Xvfb for run time
|
Run test using nodejs. This test also starts Xvfb for run time
|
||||||
tests.
|
tests.
|
||||||
@ -344,8 +346,6 @@
|
|||||||
|
|
||||||
Directory, relative to zuul_work_dir, holding build content.
|
Directory, relative to zuul_work_dir, holding build content.
|
||||||
pre-run: playbooks/javascript/pre-test.yaml
|
pre-run: playbooks/javascript/pre-test.yaml
|
||||||
run: playbooks/javascript/run.yaml
|
|
||||||
post-run: playbooks/javascript/post.yaml
|
|
||||||
vars:
|
vars:
|
||||||
npm_command: test
|
npm_command: test
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user