Bug 1340162 - Add task for running mozlint unitttests on Linux (and pull old tests out of make check), r?smacleod draft
authorAndrew Halberstadt <ahalberstadt@mozilla.com>
Thu, 02 Feb 2017 11:08:41 -0500
changeset 485372 f146a0015d12f43f310fb55fbcc939e7aaefe498
parent 485371 0c80dd1378ed20289b4f1ababffc8b7be8a04433
child 545995 48a6f5e4b61b378c26ba57c6a595afc4851d629a
push id45708
push userahalberstadt@mozilla.com
push dateThu, 16 Feb 2017 15:42:42 +0000
reviewerssmacleod
bugs1340162
milestone54.0a1
Bug 1340162 - Add task for running mozlint unitttests on Linux (and pull old tests out of make check), r?smacleod MozReview-Commit-ID: 3XCWMJtQMvZ
python/mozlint/test/python.ini
taskcluster/ci/source-check/python-tests.yml
--- a/python/mozlint/test/python.ini
+++ b/python/mozlint/test/python.ini
@@ -1,4 +1,7 @@
+[DEFAULT]
+subsuite = mozlint, os == "linux"
+
 [test_formatters.py]
 [test_parser.py]
 [test_roller.py]
 [test_types.py]
--- a/taskcluster/ci/source-check/python-tests.yml
+++ b/taskcluster/ci/source-check/python-tests.yml
@@ -71,8 +71,36 @@ mozharness/opt:
             /usr/bin/pip2 install tox &&
             /home/worker/.local/bin/tox -e py27-hg3.7
     run-on-projects:
         - integration
         - release
     when:
         files-changed:
             - 'testing/mozharness/**'
+
+mozlint/opt:
+    description: python/mozlint unit tests
+    platforms:
+        - linux64/opt
+    treeherder:
+        symbol: py(ml)
+        kind: test
+        tier: 2
+    worker-type:
+        by-platform:
+            linux64.*: aws-provisioner-v1/b2gtest
+    worker:
+        by-platform:
+            linux64.*:
+                implementation: docker-worker
+                docker-image: {in-tree: "lint"}
+                max-run-time: 3600
+    run:
+        using: mach
+        mach: python-test --subsuite mozlint
+    run-on-projects:
+        - integration
+        - release
+    when:
+        files-changed:
+            - 'python/mozlint/**'
+            - 'python/mach_commands.py'