Ejemplo n.º 1
0
def linux_binary(is_stable=False, skiparchives=False):
    '''
    Assemble binary builds for Linux
    '''
    builder = BuilderLinuxBinary(is_stable=tobool(is_stable),
                                 create_archive=not tobool(skiparchives))
    builder.build()
Ejemplo n.º 2
0
def win(is_stable=False, skipinstaller=False, skiparchives=False):
    '''
    Build OutWiker for Windows
    '''
    builder = BuilderWindows(is_stable=tobool(is_stable),
                             create_archives=not tobool(skiparchives),
                             create_installer=not tobool(skipinstaller))
    builder.build()
Ejemplo n.º 3
0
def linux_binary(is_stable=False, skiparchives=False):
    '''
    Assemble binary builds for Linux
    '''
    builder = BuilderLinuxBinary(is_stable=tobool(is_stable),
                                 create_archive=not tobool(skiparchives)
                                 )
    builder.build()
Ejemplo n.º 4
0
def win(is_stable=False, skipinstaller=False, skiparchives=False):
    '''
    Build OutWiker for Windows
    '''
    builder = BuilderWindows(is_stable=tobool(is_stable),
                             create_archives=not tobool(skiparchives),
                             create_installer=not tobool(skipinstaller)
                             )
    builder.build()
Ejemplo n.º 5
0
def deploy(is_stable=False):
    '''
    Upload unstable version to site
    '''
    if is_stable:
        deploy(False)
    else:
        # To upload only once
        upload_plugin()
        upload_plugins_pack()

    ppa_path = PPA_STABLE_PATH if is_stable else PPA_UNSTABLE_PATH

    deb_path = BuilderDebSourcesIncluded(DEB_SOURCE_BUILD_DIR,
                                         UBUNTU_RELEASE_NAMES,
                                         tobool(is_stable)).getResultPath()
    _ppa_upload(ppa_path, deb_path)

    upload_binary(is_stable)

    version_str = getOutwikerVersionStr()
    if is_stable:
        tagname = u'release_{}'.format(version_str)
    else:
        tagname = u'unstable_{}'.format(version_str)

    _add_git_tag(tagname)
Ejemplo n.º 6
0
def deb_binary(is_stable=False):
    '''
    Create binary deb package
    '''
    builder = BuilderDebBinaryFactory.get_default(DEB_BINARY_BUILD_DIR,
                                                  tobool(is_stable))
    builder.build()
Ejemplo n.º 7
0
def snap(is_stable=0):
    '''
    Build clean snap package
    '''
    is_stable = tobool(is_stable)
    builder = BuilderSnap(is_stable)
    builder.build()
Ejemplo n.º 8
0
def appimage(is_stable=0):
    '''
    Build AppImage package
    '''
    builder = BuilderAppImage(is_stable=tobool(is_stable))
    builder.build()
    print_info('AppImage created: {}'.format(builder.get_appimage_files()))
Ejemplo n.º 9
0
def appimage(is_stable=0):
    '''
    Build AppImage package
    '''
    builder = BuilderAppImage(is_stable=tobool(is_stable))
    builder.build()
    print_info('AppImage created: {}'.format(builder.get_appimage_files()))
Ejemplo n.º 10
0
def snap(is_stable=0):
    '''
    Build clean snap package
    '''
    is_stable = tobool(is_stable)
    builder = BuilderSnap(is_stable)
    builder.build()
Ejemplo n.º 11
0
def deb_binary(is_stable=False):
    '''
    Create binary deb package
    '''
    builder = BuilderDebBinaryFactory.get_default(DEB_BINARY_BUILD_DIR,
                                                  tobool(is_stable))
    builder.build()
    print_info('Deb created: {}'.format(builder.get_deb_files()))
Ejemplo n.º 12
0
def deb(is_stable=False):
    '''
    Assemble the deb packages
    '''
    builder = BuilderDebSource(DEB_SOURCE_BUILD_DIR, UBUNTU_RELEASE_NAMES,
                               tobool(is_stable))
    builder.build()
    return builder.getResultPath()
Ejemplo n.º 13
0
def deb_binary(is_stable=False):
    '''
    Create binary deb package
    '''
    builder = BuilderDebBinaryFactory.get_default(DEB_BINARY_BUILD_DIR,
                                                  tobool(is_stable))
    builder.build()
    print_info('Deb created: {}'.format(builder.get_deb_files()))
Ejemplo n.º 14
0
def deb_sources_included(is_stable=False):
    '''
    Create files for uploading in PPA (including sources)
    '''
    builder = BuilderDebSourcesIncluded(DEB_SOURCE_BUILD_DIR,
                                        UBUNTU_RELEASE_NAMES,
                                        tobool(is_stable))
    builder.build()
    return builder.getResultPath()
Ejemplo n.º 15
0
def deb_single(is_stable=False):
    '''
    Assemble the deb package for the current Ubuntu release
    '''
    builder = BuilderDebSource(DEB_SOURCE_BUILD_DIR,
                               [getCurrentUbuntuDistribName()],
                               tobool(is_stable))
    builder.build()
    return builder.getResultPath()
Ejemplo n.º 16
0
def deb_install(is_stable=False):
    '''
    Assemble deb package for current Ubuntu release
    '''
    result_path = deb_single(tobool(is_stable))

    version = getOutwikerVersion()

    with lcd(result_path):
        local("sudo dpkg -i outwiker_{}+{}~{}_all.deb".format(
            version[0], version[1], getCurrentUbuntuDistribName()))
Ejemplo n.º 17
0
def sources(is_stable=False):
    '''
    Create the sources archives
    '''
    builder = BuilderSources(is_stable=tobool(is_stable))
    builder.build()
Ejemplo n.º 18
0
def sources(is_stable=False):
    '''
    Create the sources archives
    '''
    builder = BuilderSources(is_stable=tobool(is_stable))
    builder.build()
Ejemplo n.º 19
0
    def test_tobool(self):
        self.assertTrue(tobool(1))
        self.assertTrue(tobool(True))
        self.assertTrue(tobool(u'1'))
        self.assertTrue(tobool(u'True'))
        self.assertTrue(tobool('True'))
        self.assertTrue(tobool(u'true'))
        self.assertTrue(tobool('true'))

        self.assertFalse(tobool(0))
        self.assertFalse(tobool(u'0'))
        self.assertFalse(tobool(False))
        self.assertFalse(tobool(u'False'))
        self.assertFalse(tobool('False'))
        self.assertFalse(tobool(u'false'))
        self.assertFalse(tobool('false'))
Ejemplo n.º 20
0
def test_tobool():
    assert tobool(1)
    assert tobool(True)
    assert tobool(u'1')
    assert tobool(u'True')
    assert tobool('True')
    assert tobool(u'true')
    assert tobool('true')

    assert not tobool(0)
    assert not tobool(u'0')
    assert not tobool(False)
    assert not tobool(u'False')
    assert not tobool('False')
    assert not tobool(u'false')
    assert not tobool('false')
Ejemplo n.º 21
0
def appimage(is_stable=0):
    builder = BuilderAppImage(is_stable=tobool(is_stable))
    builder.build()
Ejemplo n.º 22
0
def snap(is_stable=0):
    is_stable = tobool(is_stable)
    builder = BuilderSnap(is_stable)
    builder.build()