Bug 1253110 - Pass binary artifacts regular expression for OS X builds; r?mshal draft
authorGregory Szorc <gps@mozilla.com>
Tue, 19 Apr 2016 10:08:05 -0700
changeset 363138 1a3290a219afd7d6e03a4d38d0dc3e4a082d95d6
parent 363137 28bac734fd735c2d47080bd888b8cae6b535dff3
child 363139 057894df19481bd21ccdedfabe5422192ab749c2
push id17107
push usergszorc@mozilla.com
push dateWed, 04 May 2016 00:54:14 +0000
reviewersmshal
bugs1253110
milestone49.0a1
Bug 1253110 - Pass binary artifacts regular expression for OS X builds; r?mshal We don't do anything with it yet, including emitting the URL. MozReview-Commit-ID: 75KvwOlGSy8
python/mozbuild/mozbuild/artifacts.py
--- a/python/mozbuild/mozbuild/artifacts.py
+++ b/python/mozbuild/mozbuild/artifacts.py
@@ -120,19 +120,23 @@ class ArtifactJob(object):
         ('bin/xpcshell', ('bin', 'bin')),
         ('bin/plugins/*', ('bin/plugins', 'plugins'))
     }
 
     # We can tell our input is a test archive by this suffix, which happens to
     # be the same across platforms.
     _test_archive_suffix = '.common.tests.zip'
 
-    def __init__(self, package_re=None, tests_re=None, log=None):
+    def __init__(self, binary_artifacts_re=None, package_re=None, tests_re=None,
+                 log=None):
+        self._binary_artifacts_re = None
         self._package_re = None
         self._tests_re = None
+        if binary_artifacts_re:
+            self._binary_artifacts_re = re.compile(binary_artifacts_re)
         if package_re:
             self._package_re = re.compile(package_re)
         if tests_re:
             self._tests_re = re.compile(tests_re)
         self._log = log
 
     def log(self, *args, **kwargs):
         if self._log:
@@ -400,16 +404,17 @@ JOB_DETAILS = {
         'tests_re': 'public/build/firefox-(.*)\.common\.tests\.zip'}),
     'linux64': (LinuxArtifactJob, {
         'package_re': 'public/build/firefox-(.*)\.linux-x86_64\.tar\.bz2',
         'tests_re': 'public/build/firefox-(.*)\.common\.tests\.zip'}),
     'linux64-debug': (LinuxArtifactJob, {
         'package_re': 'public/build/firefox-(.*)\.linux-x86_64\.tar\.bz2',
         'tests_re': 'public/build/firefox-(.*)\.common\.tests\.zip'}),
     'macosx64': (MacArtifactJob, {
+        'binary_artifacts_re': 'public/build/firefox-(.*)\.binary-artifacts.zip',
         'package_re': 'public/build/firefox-(.*)\.mac\.dmg',
         'tests_re': 'public/build/firefox-(.*)\.common\.tests\.zip'}),
     'macosx64-debug': (MacArtifactJob, {
         'package_re': 'public/build/firefox-(.*)\.mac64\.dmg',
         'tests_re': 'public/build/firefox-(.*)\.common\.tests\.zip'}),
     'win32': (WinArtifactJob, {
         'package_re': 'public/build/firefox-(.*)\.win32.zip',
         'tests_re': 'public/build/firefox-(.*)\.common\.tests\.zip'}),