mirror of
https://github.com/dart-lang/sdk
synced 2024-11-05 18:22:09 +00:00
Change the way we determine if we are on the correct platform when doing debian packages.
Also, temporarily, archive bleeding edge packages. Review URL: https://codereview.chromium.org//253273004 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35569 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
parent
56697ba3b6
commit
0ae56ec535
1 changed files with 7 additions and 7 deletions
|
@ -70,18 +70,18 @@ def SrcSteps(build_info):
|
|||
|
||||
with bot.BuildStep('Validating linux system'):
|
||||
print 'Validating that we are on %s' % build_info.builder_tag
|
||||
args = ['uname', '-a']
|
||||
args = ['cat', '/etc/os-release']
|
||||
(stdout, stderr, exitcode) = bot_utils.run(args)
|
||||
if exitcode != 0:
|
||||
print "Could not find linux system, exiting"
|
||||
sys.exit(1)
|
||||
|
||||
if build_info.builder_tag == "debian_wheezy":
|
||||
if not "Debian" in stdout:
|
||||
if not "wheezy" in stdout:
|
||||
print "Trying to build debian bits on a non debian system"
|
||||
sys.exit(1)
|
||||
if build_info.builder_tag == "ubuntu_precise":
|
||||
if not "Ubuntu" in stdout:
|
||||
if not "precise" in stdout:
|
||||
print "Trying to build ubuntu bits on a non ubuntu system"
|
||||
sys.exit(1)
|
||||
|
||||
|
@ -99,10 +99,10 @@ def SrcSteps(build_info):
|
|||
with bot.BuildStep('Upload artifacts'):
|
||||
bot_name, _ = bot.GetBotName()
|
||||
channel = bot_utils.GetChannelFromName(bot_name)
|
||||
if channel != bot_utils.Channel.BLEEDING_EDGE:
|
||||
ArchiveArtifacts(tarfile, builddir, channel, build_info.builder_tag)
|
||||
else:
|
||||
print 'Not uploading artifacts on bleeding edge'
|
||||
# if channel != bot_utils.Channel.BLEEDING_EDGE:
|
||||
ArchiveArtifacts(tarfile, builddir, channel, build_info.builder_tag)
|
||||
# else:
|
||||
# print 'Not uploading artifacts on bleeding edge'
|
||||
|
||||
if __name__ == '__main__':
|
||||
# We pass in None for build_step to avoid building the sdk.
|
||||
|
|
Loading…
Reference in a new issue