Permalink
Browse files

android release builders. bug 561901, r=jhford

  • Loading branch information...
1 parent 2c8b502 commit 1036867412b289baec6a8212c0bab7e6cb7ed5ef @escapewindow escapewindow committed Jun 25, 2010
Showing with 47 additions and 1 deletion.
  1. +1 −1 l10n.py
  2. +46 −0 process/factory.py
View
@@ -903,7 +903,7 @@ def __init__(self,
# Make sure a supported platform is passed. Allow variations, but make
# sure to convert them to the form the locales files ues.
assert platform in ('linux', 'linux64', 'win32', 'macosx', 'macosx64',
- 'osx', 'osx64', 'maemo', 'wince')
+ 'osx', 'osx64', 'maemo', 'wince', 'android-r7')
self.platform = platform
if self.platform.startswith('macosx'):
self.platform = 'osx'
View
@@ -7342,3 +7342,49 @@ def addUploadSteps(self, platform):
workdir='%s/%s/%s' % (self.baseWorkDir, self.branchName, self.objdir)
)
+class AndroidReleaseBuildFactory(AndroidBuildFactory):
+ def __init__(self, **kwargs):
+ AndroidBuildFactory.__init__(self, **kwargs)
+
+ def addUploadSteps(self, platform):
+ self.addStep(SetProperty,
+ name="get_buildid",
+ command=['python', '../config/printconfigsetting.py',
+ 'dist/bin/application.ini',
+ 'App', 'BuildID'],
+ property='buildid',
+ workdir='%s/%s/%s' % (self.baseWorkDir, self.branchName, self.objdir),
+ description=['getting', 'buildid'],
+ descriptionDone=['got', 'buildid']
+ )
+ self.addStep(ShellCommand,
+ name='echo_buildID',
+ command=['bash', '-c',
+ WithProperties('echo buildID=%(buildid)s > ' + \
+ '%s_info.txt' % self.platform)],
+ workdir='%s/%s/%s/dist' % (self.baseWorkDir, self.branchName, self.objdir)
+ )
+ self.packageGlob = '%s dist/%s_info.txt' % (self.packageGlob,
+ self.platform)
+ self.addStep(MozillaStageUpload,
+ name="upload_to_stage",
+ description=['upload','to','stage'],
+ objdir=self.branchName,
+ username=self.stageUsername,
+ milestone='%s/unsigned/%s' % (self.baseUploadDir, self.platform),
+ remoteHost=self.stageServer,
+ remoteBasePath='%s/unsigned/%s' % (self.stageBasePath, self.platform),
+ platform=platform,
+ group=self.stageGroup,
+ packageGlob=self.packageGlob,
+ sshKey=self.stageSshKey,
+ uploadCompleteMar=False,
+ releaseToLatest=False,
+ releaseToDated=False,
+ releaseToTinderboxBuilds=False,
+ releaseToCandidates=True,
+ tinderboxBuildsDir='%s/unsigned/%s' % (self.baseUploadDir, self.platform),
+ remoteCandidatesPath='%s/unsigned/%s' % (self.stageBasePath, self.platform),
+ dependToDated=True,
+ workdir='%s/%s/%s' % (self.baseWorkDir, self.branchName, self.objdir)
+ )

0 comments on commit 1036867

Please sign in to comment.