Add a --stage-two to big_red_button.py

This commit is contained in:
John McCutchan
2015-07-31 10:41:24 -07:00
parent d95e0c6960
commit a2f344c610

View File

@@ -76,6 +76,8 @@ def upload_artifacts(dist_root, config, commit_hash):
def main():
parser = argparse.ArgumentParser(description='Deploy!')
parser.add_argument('sky_engine_root', help='Path to sky_engine/src')
parser.add_argument('--stage-two', action='store_true', default=False,
help='Publish the sky package and upload the binaries')
parser.add_argument('--dry-run', action='store_true', default=False,
help='Just print commands w/o executing.')
parser.add_argument('--no-pub-publish', dest='publish',
@@ -114,13 +116,15 @@ def main():
run(sky_engine_root, ['cp', 'AUTHORS', 'LICENSE', sky_package_root])
upload_artifacts(android_dist_root, 'android-arm', commit_hash)
upload_artifacts(linux_dist_root, 'linux-x64', commit_hash)
if args.stage_two:
upload_artifacts(android_dist_root, 'android-arm', commit_hash)
upload_artifacts(linux_dist_root, 'linux-x64', commit_hash)
if args.publish:
run(sky_engine_package_root, [pub_path, 'publish', '--force'])
run(sky_services_package_root, [pub_path, 'publish', '--force'])
run(sky_package_root, [pub_path, 'publish', '--force'])
if args.stage_two:
run(sky_package_root, [pub_path, 'publish', '--force'])
if __name__ == '__main__':