OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 | 2 |
3 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
4 # for details. All rights reserved. Use of this source code is governed by a | 4 # for details. All rights reserved. Use of this source code is governed by a |
5 # BSD-style license that can be found in the LICENSE file. | 5 # BSD-style license that can be found in the LICENSE file. |
6 | 6 |
7 """ | 7 """ |
8 Buildbot steps for src tarball generation and debian package generation | 8 Buildbot steps for src tarball generation and debian package generation |
9 | 9 |
10 Package up the src of the dart repo and create a debian package. | 10 Package up the src of the dart repo and create a debian package. |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 print 'Building src tarball' | 122 print 'Building src tarball' |
123 Run([sys.executable, './tools/create_tarball.py', | 123 Run([sys.executable, './tools/create_tarball.py', |
124 '--tar_filename', tarfile]) | 124 '--tar_filename', tarfile]) |
125 | 125 |
126 print 'Building Debian packages' | 126 print 'Building Debian packages' |
127 Run([sys.executable, './tools/create_debian_packages.py', | 127 Run([sys.executable, './tools/create_debian_packages.py', |
128 '--tar_filename', tarfile, | 128 '--tar_filename', tarfile, |
129 '--out_dir', builddir]) | 129 '--out_dir', builddir]) |
130 | 130 |
131 with bot.BuildStep('Sanity check installation'): | 131 with bot.BuildStep('Sanity check installation'): |
132 if os.path.exists('/usr/bin/dart'): | 132 if os.path.exists('/usr/bin/dart') or os.path.exists( |
| 133 '/usr/lib/dart/bin/dart2js'): |
133 print "Dart already installed, removing" | 134 print "Dart already installed, removing" |
134 UninstallDart() | 135 UninstallDart() |
135 TestInstallation(assume_installed=False) | 136 TestInstallation(assume_installed=False) |
136 | 137 |
137 InstallFromDep(builddir) | 138 InstallFromDep(builddir) |
138 TestInstallation(assume_installed=True) | 139 TestInstallation(assume_installed=True) |
139 | 140 |
140 # We build the runtime target to get everything we need to test the | 141 # We build the runtime target to get everything we need to test the |
141 # standalone target. | 142 # standalone target. |
142 Run([sys.executable, './tools/build.py', '-mrelease', '-ax64', 'runtime']) | 143 Run([sys.executable, './tools/build.py', '-mrelease', '-ax64', 'runtime']) |
(...skipping 22 matching lines...) Expand all Loading... |
165 bot_name, _ = bot.GetBotName() | 166 bot_name, _ = bot.GetBotName() |
166 channel = bot_utils.GetChannelFromName(bot_name) | 167 channel = bot_utils.GetChannelFromName(bot_name) |
167 if channel != bot_utils.Channel.BLEEDING_EDGE: | 168 if channel != bot_utils.Channel.BLEEDING_EDGE: |
168 ArchiveArtifacts(tarfile, builddir, channel) | 169 ArchiveArtifacts(tarfile, builddir, channel) |
169 else: | 170 else: |
170 print 'Not uploading artifacts on bleeding edge' | 171 print 'Not uploading artifacts on bleeding edge' |
171 | 172 |
172 if __name__ == '__main__': | 173 if __name__ == '__main__': |
173 # We pass in None for build_step to avoid building the sdk. | 174 # We pass in None for build_step to avoid building the sdk. |
174 bot.RunBot(SrcConfig, SrcSteps, build_step=None) | 175 bot.RunBot(SrcConfig, SrcSteps, build_step=None) |
OLD | NEW |