Exemple #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()
Exemple #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()
Exemple #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()
Exemple #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()
Exemple #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)
Exemple #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()
Exemple #7
0
def snap(is_stable=0):
    '''
    Build clean snap package
    '''
    is_stable = tobool(is_stable)
    builder = BuilderSnap(is_stable)
    builder.build()
Exemple #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()))
Exemple #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()))
Exemple #10
0
def snap(is_stable=0):
    '''
    Build clean snap package
    '''
    is_stable = tobool(is_stable)
    builder = BuilderSnap(is_stable)
    builder.build()
Exemple #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()))
Exemple #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()
Exemple #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()))
Exemple #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()
Exemple #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()
Exemple #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()))
Exemple #17
0
def sources(is_stable=False):
    '''
    Create the sources archives
    '''
    builder = BuilderSources(is_stable=tobool(is_stable))
    builder.build()
Exemple #18
0
def sources(is_stable=False):
    '''
    Create the sources archives
    '''
    builder = BuilderSources(is_stable=tobool(is_stable))
    builder.build()
    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'))
Exemple #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')
Exemple #21
0
def appimage(is_stable=0):
    builder = BuilderAppImage(is_stable=tobool(is_stable))
    builder.build()
Exemple #22
0
def snap(is_stable=0):
    is_stable = tobool(is_stable)
    builder = BuilderSnap(is_stable)
    builder.build()