Example #1
0
def snap(is_stable=0):
    '''
    Build clean snap package
    '''
    is_stable = tobool(is_stable)
    builder = BuilderSnap(is_stable)
    builder.build()
Example #2
0
def snap(is_stable=0):
    '''
    Build clean snap package
    '''
    is_stable = tobool(is_stable)
    builder = BuilderSnap(is_stable)
    builder.build()
Example #3
0
def snap_publish():
    builder = BuilderSnap(False)
    snap_files = builder.get_snap_files()

    for snap_file in snap_files:
        print_info('Publish snap: {fname}'.format(fname=snap_file))
        local('snapcraft push "{fname}"'.format(fname=snap_file))
        local('snapcraft sign-build "{fname}"'.format(fname=snap_file))
Example #4
0
def snap_publish():
    '''
    Publish created snap package
    '''
    builder = BuilderSnap(False)
    snap_files = builder.get_snap_files()

    for snap_file in snap_files:
        print_info('Publish snap: {fname}'.format(fname=snap_file))
        local('snapcraft push "{fname}"'.format(fname=snap_file))
        local('snapcraft sign-build "{fname}"'.format(fname=snap_file))
Example #5
0
def snap_publish(*channels):
    '''
    Publish created snap package
    channels - comma separated list of channels the snap would be released:
        edge, beta, candidate, release
    '''
    builder = BuilderSnap(False)
    snap_files = builder.get_snap_files()

    for snap_file in snap_files:
        print_info('Publish snap: {fname}'.format(fname=snap_file))
        if channels:
            channels_str = ','.join(channels)
            command = 'snapcraft upload  "{fname}" --release {channels}'.format(
                fname=snap_file, channels=channels_str)
        else:
            command = 'snapcraft upload  "{fname}"'.format(fname=snap_file)

        local(command)
Example #6
0
def snap(c, params):
    '''
    Build clean snap package
    '''
    builder = BuilderSnap(c, params)
    builder.build()
Example #7
0
def snap(is_stable=0):
    is_stable = tobool(is_stable)
    builder = BuilderSnap(is_stable)
    builder.build()