@@ -0,0 +1,1755 @@
+# Roll versions script:%0A# /src/mojo/src/sky/apk/demo/AndroidManifest.xml version and string.%0A# Update versions of pub packages:%0A%0A# Make a commit, upload it, land it.%0A%0Aimport os%0Aimport subprocess%0A%0Adef run(cwd, args):%0A    print 'RUNNING:', ' '.join(args), 'IN:', cwd%0A    subprocess.check_call(args, cwd=cwd)%0A%0A# Input paths:%0A# FIXME: These could be args?%0AMOJO_ROOT = '/src/mojo/src'%0ASKY_SDK_ROOT = '/src/sky_sdk'%0ADEMO_SITE_ROOT = '/src/domokit.github.io'%0A%0A# Derived paths:%0ADART_SDK_ROOT = os.path.join(MOJO_ROOT, 'third_party/dart-sdk/dart-sdk')%0APUB_PATH = os.path.join(DART_SDK_ROOT, 'bin/pub')%0APACKAGES_ROOT = os.path.join(SKY_SDK_ROOT, 'packages')%0A%0A%0Arun(MOJO_ROOT, %5B'git', 'pull', '--rebase'%5D)%0Arun(MOJO_ROOT, %5B'gclient', 'sync'%5D)%0Arun(MOJO_ROOT, %5B'mojo/tools/mojob.py', 'gn', '--android', '--release'%5D)%0Arun(MOJO_ROOT, %5B'mojo/tools/mojob.py', 'build', '--android', '--release'%5D)%0A# Run tests?%0A%0Arun(SKY_SDK_ROOT, %5B'git', 'reset', '--hard', 'origin/master'%5D)%0Arun(MOJO_ROOT, %5B%0A    'sky/tools/deploy_sdk.py',%0A    '--non-interactive',%0A    '--commit',%0A    SKY_SDK_ROOT%0A%5D)%0A# tag for version?%0A%0Arun(DEMO_SITE_ROOT, %5B'git', 'reset', '--hard', 'origin/master'%5D)%0Arun(MOJO_ROOT, %5B'mojo/tools/deploy_domokit_site.py', DEMO_SITE_ROOT%5D)%0A# tag for version?%0A%0Afor package in os.listdir(PACKAGES_ROOT):%0A    package_path = os.path.join(PACKAGES_ROOT, package)%0A    if not os.path.isdir(package_path):%0A        continue%0A    run(package_path, %5BPUB_PATH, 'publish', '--force'%5D)%0A%0Arun(SKY_SDK_ROOT, %5B'git', 'push'%5D)%0Arun(DEMO_SITE_ROOT, %5B'git', 'push'%5D)%0A%0A# http://stackoverflow.com/questions/14665518/api-to-automatically-upload-apk-to-google-play%0A# https://developers.google.com/resources/api-libraries/documentation/androidpublisher/v2/python/latest/androidpublisher_v2.edits.apks.html

Add big_red_button script so that others can deploy