Adding alwaysUseLatest parameter for GClient sync.
Removed confusing use of Subversion URL in places where it doesn't have any effect. BUG=None TEST=Successful build with local master and the Chrome slave. Review URL: https://webrtc-codereview.appspot.com/521001 git-svn-id: http://webrtc.googlecode.com/svn/trunk@2103 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -225,8 +225,14 @@ class WebRTCFactory(factory.BuildFactory):
|
|||||||
"""
|
"""
|
||||||
self.AddCommonTestRunStep(test)
|
self.AddCommonTestRunStep(test)
|
||||||
|
|
||||||
def AddGclientSyncStep(self):
|
def AddGclientSyncStep(self, alwaysUseLatest=False):
|
||||||
"""Helper method for invoking gclient sync."""
|
"""Helper method for invoking gclient sync.
|
||||||
|
|
||||||
|
Args:
|
||||||
|
alwaysUseLatest: Set to true to always use the latest build, otherwise
|
||||||
|
the highest revision in the changeset will be used
|
||||||
|
for sync.
|
||||||
|
"""
|
||||||
gclient_spec = self._ConfigureWhatToBuild()
|
gclient_spec = self._ConfigureWhatToBuild()
|
||||||
env = self._GetEnvironmentWithDisabledDepotToolsUpdate()
|
env = self._GetEnvironmentWithDisabledDepotToolsUpdate()
|
||||||
|
|
||||||
@@ -238,8 +244,8 @@ class WebRTCFactory(factory.BuildFactory):
|
|||||||
# Removal can take a long time. Allow 15 minutes.
|
# Removal can take a long time. Allow 15 minutes.
|
||||||
rm_timeout = 60 * 15
|
rm_timeout = 60 * 15
|
||||||
self.addStep(chromium_step.GClient,
|
self.addStep(chromium_step.GClient,
|
||||||
|
alwaysUseLatest=alwaysUseLatest,
|
||||||
gclient_spec=gclient_spec,
|
gclient_spec=gclient_spec,
|
||||||
svnurl=WEBRTC_SVN_LOCATION,
|
|
||||||
workdir='build',
|
workdir='build',
|
||||||
mode='update',
|
mode='update',
|
||||||
env=env,
|
env=env,
|
||||||
@@ -467,7 +473,7 @@ class WebRTCAndroidFactory(WebRTCFactory):
|
|||||||
cmd = ' ; '.join(cleanup_list)
|
cmd = ' ; '.join(cleanup_list)
|
||||||
self.AddCommonStep(cmd, descriptor='cleanup')
|
self.AddCommonStep(cmd, descriptor='cleanup')
|
||||||
|
|
||||||
cmd = 'svn checkout %s external/webrtc' % WEBRTC_SVN_LOCATION
|
cmd = 'svn checkout %s external/webrtc' % self.svn_url
|
||||||
self.AddCommonStep(cmd, descriptor='svn (checkout)')
|
self.AddCommonStep(cmd, descriptor='svn (checkout)')
|
||||||
|
|
||||||
cmd = ('source build/envsetup.sh && lunch full_%s-eng '
|
cmd = ('source build/envsetup.sh && lunch full_%s-eng '
|
||||||
@@ -513,7 +519,7 @@ class WebRTCChromeFactory(WebRTCFactory):
|
|||||||
def EnableBuild(self, release=False, enable_profiling=False):
|
def EnableBuild(self, release=False, enable_profiling=False):
|
||||||
self.AddCommonStep(['rm', '-rf', 'src'], workdir=WEBRTC_BUILD_DIR,
|
self.AddCommonStep(['rm', '-rf', 'src'], workdir=WEBRTC_BUILD_DIR,
|
||||||
descriptor='Cleanup')
|
descriptor='Cleanup')
|
||||||
self.AddGclientSyncStep()
|
self.AddGclientSyncStep(alwaysUseLatest=True)
|
||||||
if enable_profiling:
|
if enable_profiling:
|
||||||
self.AddCommonStep(['./build/gyp_chromium', '-Dprofiling=1'],
|
self.AddCommonStep(['./build/gyp_chromium', '-Dprofiling=1'],
|
||||||
descriptor="gyp_chromium",
|
descriptor="gyp_chromium",
|
||||||
|
|||||||
Reference in New Issue
Block a user