Beispiel #1
0
def main():
    logging.basicConfig(level=logging.INFO)
    c = boto.connect_s3()
    b = c.get_bucket('files.projecthawkthorne.com')

    branch = os.environ.get('TRAVIS_BRANCH', '')

    v = 'v' + version.next_version()

    if branch == 'master':
        path = os.path.join('releases', 'tip')
    else:
        path = os.path.join('releases', 'v' + version.next_version())

    for item in releases:
        upload.upload_path(b, path, os.path.join('build', item))

    if branch != 'release':
        logging.info('[DRYRUN] Upload windows files')
        logging.info('[DRYRUN] Create release symlinks')
        return

    for f in files:
        wpath = os.path.join(path, "win")
        upload.upload_path(b, wpath, os.path.join('win32', f))

    for item in releases:
        k = b.get_key("releases/latest/{}".format(item))
        k.set_redirect("/releases/{}/{}".format(v, item))
        k.set_acl('public-read')
def main():
    logging.basicConfig(level=logging.INFO)

    branch = os.environ.get('TRAVIS_BRANCH', '')
    commit = os.environ.get('TRAVIS_COMMIT', '')

    if branch != 'release':
        return

    if commit == '':
        return

    c = boto.connect_s3(calling_format=OrdinaryCallingFormat())
    b = c.get_bucket('files.projecthawkthorne.com')
    v = version.next_version()

    with open('post.md') as f:
        release = create_release(v, commit, f.read())

    for item in releases:
        asset = upload_asset(release, item, os.path.join('build', item))

        k = b.new_key("releases/v{}/{}".format(v, item))
        k.set_redirect(asset.browser_download_url)

        k = b.get_key("releases/latest/{}".format(item))
        k.set_redirect(asset.browser_download_url)
def main():
    v = version.next_version()

    logging.info("Creating osx/Info.plist")
    create_info_plist(v)

    logging.info("Creating src/config.json")
    create_conf_lua(v)
Beispiel #4
0
def main():
    v = version.next_version()

    logging.info("Creating osx/Info.plist")
    create_info_plist(v)

    logging.info("Creating src/conf.lua")
    create_conf_lua(v)

    logging.info("Creating src/main.lua")
    create_main_lua()
Beispiel #5
0
def main():
    if os.environ.get('TRAVIS_BRANCH', '') == 'release':
        v = version.next_version()
    else:
        v = "0.0.0"

    logging.info("Creating osx/Info.plist")
    create_info_plist(v)

    logging.info("Creating src/config.json")
    create_conf_json(v)

    logging.info("Creating src/conf.lua")
    create_conf_lua(v)
def main():
    logging.basicConfig(level=logging.INFO)
    c = boto.connect_s3()
    b = c.get_bucket('files.projecthawkthorne.com')

    path = os.path.join('releases', 'v' + version.next_version())

    for item in releases:
        upload.upload_path(b, path, os.path.join('build', item))

    if 'TRAVIS' not in os.environ:
        logging.info('[DRYRUN] Create release symlinks')
        return

    for item in releases:
        k = b.get_key("releases/latest/{}".format(release))
        k.set_redirect("/releases/{}/{}".format(args.version, release))
        k.set_acl('public-read')