Ejemplo n.º 1
0
def getFactory():
    factory = base.getFactory();

    list = [
        steps.Git(
            repourl='https://github.com/QuasarApp/quasarAppCoin.git',
            branch=util.Interpolate('%(prop:Branch)s'),
            mode='incremental',
            submodules=True
        ),
        steps.ShellCommand(
            command= ['qmake'],
        ),
        steps.ShellCommand(
            command= ['make', 'deploy'],
        ),
        steps.CopyDirectory(
            src="build/Distro",
            dest="~/shared/quasarAppCoin/"
        )

    ]

    factory.addSteps(list);

    return factory
Ejemplo n.º 2
0
def getFactory():
    factory = base.getFactory();

    factory.addStep(
        steps.Git(
            repourl="https://github.com/qt/qt5.git",
            branch=util.Interpolate('%(prop:branch)s'),
            mode='full',
            method = 'fresh',
            submodules=True,
            name = 'git operations',
            description = 'operations of git like pull clone fetch',
        )
    );

    factory.addStep(
        steps.ShellCommand(
            command= getHelp,
            name = 'read help',
            haltOnFailure = True,
            description = 'read help for generate the configure command',
        )
    );

    factory.addSteps(linuxSteps());
    factory.addSteps(windowsSteps());
    factory.addSteps(androidSteps());

    return factory
Ejemplo n.º 3
0
def getFactory():
    factory = base.getFactory()

    factory.addStep(
        steps.Git(repourl='git://github.com/buildbot/hello-world.git',
                  mode='incremental'))
    factory.addStep(
        steps.ShellCommand(command=["trial", "hello"], env={"PYTHONPATH":
                                                            "."}))
    return factory
Ejemplo n.º 4
0
def getFactory():
    factory = base.getFactory()

    factory.addStep(
        steps.Git(
            repourl=util.Interpolate('%(prop:repository)s'),
            branch=util.Interpolate('%(prop:branch)s'),
            mode='full',
            method='fresh',
            submodules=True,
            name='git operations',
            description='operations of git like pull clone fetch',
            doStepIf=lambda step: not isStopForce(step),
        ))

    factory.addStep(
        steps.ShellCommand(
            command=['npm', "stop"],
            haltOnFailure=True,
            name='npm stop',
            description='stop old version',
        ))

    factory.addStep(
        steps.ShellCommand(
            command=['npm', "i"],
            doStepIf=lambda step: not isStopForce(step),
            haltOnFailure=True,
            name='npm install',
            description='install all dependecies',
        ))

    factory.addStep(
        steps.ShellCommand(
            command=['npm', "start"],
            doStepIf=lambda step: not isStopForce(step),
            haltOnFailure=True,
            name='npm start',
            description='install new versio to server',
        ))

    return factory
Ejemplo n.º 5
0
def getFactory():
    factory = base.getFactory()

    factory.addStep(
        steps.Git(
            repourl=util.Interpolate('%(prop:repository)s'),
            branch=util.Interpolate('%(prop:branch)s'),
            mode='full',
            method='fresh',
            submodules=True,
            name='git operations',
            description='operations of git like pull clone fetch',
        ))

    factory.addSteps(LinuxSteps())
    factory.addSteps(WinSteps())
    factory.addSteps(AndroidSteps())

    factory.addStep(
        steps.CopyDirectory(
            src=util.Interpolate('build/%(prop:copyFolder)s'),
            dest=destDir,
            doStepIf=lambda step: isDeploy(step),
            name='copy buildet files',
            description='copy buildet files to shared folder',
        ))

    factory.addStep(
        steps.ShellCommand(
            command=permission,
            name='set permission',
            haltOnFailure=True,
            description='set permission for shared folder',
        ))

    return factory