]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
- Adding .taskcluster.yml file to support new Taskcluster/Github integration for...
authorDavid Lawrence <dkl@mozilla.com>
Wed, 22 Feb 2017 13:23:20 +0000 (13:23 +0000)
committerDavid Lawrence <dkl@mozilla.com>
Wed, 22 Feb 2017 13:24:19 +0000 (13:24 +0000)
.taskcluster.yml [new file with mode: 0644]

diff --git a/.taskcluster.yml b/.taskcluster.yml
new file mode 100644 (file)
index 0000000..a72aa72
--- /dev/null
@@ -0,0 +1,168 @@
+version: 0
+metadata:
+  name: "Bugzilla CI Tests"
+  description: "A suite of tests to check the quality of the Bugzilla codebase."
+  owner: "bugzilla-admin@mozilla.org"
+  source: "{{ event.head.repo.url }}"
+tasks:
+  - provisionerId: "{{ taskcluster.docker.provisionerId }}"
+    workerType: "{{ taskcluster.docker.workerType }}"
+    routes:
+      - "notify.email.bugzilla-admin@mozilla.org.on-failed"
+      - "notify.email.bugzilla-admin@mozilla.org.on-exception"
+      - "notify.irc-channel.#bugzilla.on-failed"
+      - "notify.irc-channel.#bugzilla.on-exception"
+      - "tc-treeherder.v2.bugzilla/bugzilla-master.{{ event.head.sha }}"
+    extra:
+      github:
+        env: true
+        events:
+          - pull_request.opened
+          - pull_request.synchronize
+          - pull_request.reopened
+          - push
+      treeherder:
+        symbol: "San"
+        machine:
+          platform: "linux64"
+          build:
+            platform: "linux64"
+    payload:
+      maxRunTime: 3600
+      image: "bugzilla/bugzilla-ci"
+      command:
+        - "runtests.sh"
+      env:
+        TEST_SUITE: "sanity"
+      artifacts:
+        public/runtests_log:
+          type: "file"
+          path: "/var/log/runtests.log"
+    metadata:
+      name: "Basic Sanity Tests"
+      description: "Basic Sanity Tests"
+      owner: "bugzilla-admin@mozilla.org"
+      source: "{{ event.head.repo.url }}"
+  - provisionerId: "{{ taskcluster.docker.provisionerId }}"
+    workerType: "{{ taskcluster.docker.workerType }}"
+    routes:
+      - "notify.email.bugzilla-admin@mozilla.org.on-failed"
+      - "notify.email.bugzilla-admin@mozilla.org.on-exception"
+      - "notify.irc-channel.#bugzilla.on-failed"
+      - "notify.irc-channel.#bugzilla.on-exception"
+      - "tc-treeherder.v2.bugzilla/bugzilla-master.{{ event.head.sha }}"
+    extra:
+      github:
+        env: true
+        events:
+          - pull_request.opened
+          - pull_request.synchronize
+          - pull_request.reopened
+          - push
+      treeherder:
+        symbol: "Doc"
+        machine:
+          platform: "linux64"
+          build:
+            platform: "linux64"
+    payload:
+      maxRunTime: 3600
+      image: "bugzilla/bugzilla-ci"
+      command:
+        - "runtests.sh"
+      env:
+        TEST_SUITE: "docs"
+      artifacts:
+        public/runtests_log:
+          type: "file"
+          path: "/var/log/runtests.log"
+    metadata:
+      name: "Documentation Build Test"
+      description: "Documentation Build Test"
+      owner: "bugzilla-admin@mozilla.org"
+      source: "{{ event.head.repo.url }}"
+  - provisionerId: "{{ taskcluster.docker.provisionerId }}"
+    workerType: "{{ taskcluster.docker.workerType }}"
+    routes:
+      - "notify.email.bugzilla-admin@mozilla.org.on-failed"
+      - "notify.email.bugzilla-admin@mozilla.org.on-exception"
+      - "notify.irc-channel.#bugzilla.on-failed"
+      - "notify.irc-channel.#bugzilla.on-exception"
+      - "tc-treeherder.v2.bugzilla/bugzilla-master.{{ event.head.sha }}"
+    extra:
+      github:
+        env: true
+        events:
+          - pull_request.opened
+          - pull_request.synchronize
+          - pull_request.reopened
+          - push
+      treeherder:
+        symbol: "API"
+        machine:
+          platform: "linux64"
+          build:
+            platform: "linux64"
+    payload:
+      maxRunTime: 3600
+      image: "bugzilla/bugzilla-ci"
+      command:
+        - "runtests.sh"
+      env:
+        TEST_SUITE: "webservices"
+      artifacts:
+        public/runtests_log:
+          type: "file"
+          path: "/var/log/runtests.log"
+        public/httpd_error_log:
+          type: "file"
+          path: "/var/log/httpd/error_log"
+    metadata:
+      name: "WebService API Tests"
+      description: "WebService API Tests"
+      owner: "bugzilla-admin@mozilla.org"
+      source: "{{ event.head.repo.url }}"
+  - provisionerId: "{{ taskcluster.docker.provisionerId }}"
+    workerType: "{{ taskcluster.docker.workerType }}"
+    routes:
+      - "notify.email.bugzilla-admin@mozilla.org.on-failed"
+      - "notify.email.bugzilla-admin@mozilla.org.on-exception"
+      - "notify.irc-channel.#bugzilla.on-failed"
+      - "notify.irc-channel.#bugzilla.on-exception"
+      - "tc-treeherder.v2.bugzilla/bugzilla-master.{{ event.head.sha }}"
+    extra:
+      github:
+        env: true
+        events:
+          - pull_request.opened
+          - pull_request.synchronize
+          - pull_request.reopened
+          - push
+      treeherder:
+        symbol: "Sel"
+        machine:
+          platform: "linux64"
+          build:
+            platform: "linux64"
+    payload:
+      maxRunTime: 3600
+      image: "bugzilla/bugzilla-ci"
+      command:
+        - "runtests.sh"
+      env:
+        TEST_SUITE: "selenium"
+      artifacts:
+        public/runtests_log:
+          type: "file"
+          path: "/var/log/runtests.log"
+        public/httpd_error_log:
+          type: "file"
+          path: "/var/log/httpd/error_log"
+        public/selenium_log":
+          type: "file"
+          path: "/selenium.log"
+    metadata:
+      name: "Selenium Tests"
+      description: "Selenium Tests"
+      owner: "bugzilla-admin@mozilla.org"
+      source: "{{ event.head.repo.url }}"