prepare-gerrit-repos: Add the other non-plugin submodules
The java-prettify and polymer-bridges submodules also have non-plugin
paths and need to be initialized if present.
Improve the test coverage for the role and the test-jobs in general.
Change-Id: I15f67350a6b90aa1d63810428bcaa0ecc80f3ba6
diff --git a/playbooks/test-gerrit-setup.yaml b/playbooks/test-gerrit-setup.yaml
index 01022e6..3c09179 100644
--- a/playbooks/test-gerrit-setup.yaml
+++ b/playbooks/test-gerrit-setup.yaml
@@ -5,4 +5,17 @@
args:
chdir: "{{ ansible_user_dir }}"
loop:
+ - modules/java-prettify
- modules/jgit
+ - plugins/codemirror-editor
+ - plugins/commit-message-length-validator
+ - plugins/delete-project
+ - plugins/download-commands
+ - plugins/gitiles
+ - plugins/hooks
+ - plugins/plugin-manager
+ - plugins/replication
+ - plugins/reviewnotes
+ - plugins/singleusergroup
+ - plugins/webhooks
+ - polymer-bridges
diff --git a/roles/prepare-gerrit-repos/defaults/main.yaml b/roles/prepare-gerrit-repos/defaults/main.yaml
index 0ba7b8a..0723f2b 100644
--- a/roles/prepare-gerrit-repos/defaults/main.yaml
+++ b/roles/prepare-gerrit-repos/defaults/main.yaml
@@ -1,6 +1,8 @@
gerrit_project_name: gerrit.googlesource.com/gerrit
gerrit_project_mapping:
gerrit: ''
+ java-prettify: modules/java-prettify
jgit: modules/jgit
+ polymer-bridges: polymer-bridges
'zuul/jobs': ''
gerrit_root: "{{ ansible_user_dir }}/{{ zuul.projects[gerrit_project_name].src_dir }}"
diff --git a/zuul.d/test-jobs.yaml b/zuul.d/test-jobs.yaml
index 064bee2..0d527e9 100644
--- a/zuul.d/test-jobs.yaml
+++ b/zuul.d/test-jobs.yaml
@@ -19,6 +19,7 @@
parent: gerrit-setup
run: playbooks/test-gerrit-setup.yaml
required-projects:
+ - java-prettify
- jgit
- plugins/codemirror-editor
- plugins/commit-message-length-validator