Exemplo n.º 1
0
def make(args=[]):
    try:
        base.configure_common_apps()

        platform = base.host_platform()
        if ("windows" == platform):
            dependence.check_pythonPath()
            dependence.check_gitPath()
            restart_win_rabbit()
        elif ("mac" == platform):
            start_mac_services()
        elif ("linux" == platform):
            start_linux_services()

        branch = base.run_command('git rev-parse --abbrev-ref HEAD')['stdout']

        base.print_info('Build modules')
        base.cmd_in_dir('../../', 'python', [
            'configure.py', '--branch', branch or 'develop', '--develop', '1',
            '--module', 'server', '--update', '1', '--update-light', '1',
            '--clean', '0'
        ] + args)
        base.cmd_in_dir('../../', 'python', ['make.py'])

        run_integration_example()

        base.create_dir('../../../server/App_Data')

        install_module('../../../server/DocService')
        install_module('../../../server/Common')
        install_module('../../../server/FileConverter')

        base.set_env('NODE_ENV', 'development-' + platform)
        base.set_env('NODE_CONFIG_DIR', '../Common/config')

        if ("mac" == platform):
            base.set_env('DYLD_LIBRARY_PATH', '../FileConverter/bin/')
        elif ("linux" == platform):
            base.set_env('LD_LIBRARY_PATH', '../FileConverter/bin/')

        run_module('../../../server/DocService', ['sources/server.js'])
        #    run_module('../../../server/DocService', ['sources/gc.js'])
        run_module('../../../server/FileConverter',
                   ['sources/convertermaster.js'])


#    run_module('../../../server/SpellChecker', ['sources/server.js'])
    except SystemExit:
        input("Ignoring SystemExit. Press Enter to continue...")
        exit(0)
    except KeyboardInterrupt:
        pass
    except:
        input("Unexpected error. " + traceback.format_exc() +
              "Press Enter to continue...")
Exemplo n.º 2
0
    team = '' if strict else 'dep-application-development-leads'
    command = 'echo {"required_status_checks": null,"enforce_admins":true,"required_pull_request_reviews": null,"restrictions": {"users":[],"teams":["'
    command += team + '"]}} | gh api -X PUT repos/ONLYOFFICE/' + repo + '/branches/' + branch + '/protection --input -'
    result = base.run_command(command)
    if ('' != result['stderr']):
        print(result['stderr'])
    return


branch_from = 'release/v6.2.0'
branches_to = ['develop']

platform = base.host_platform()
if ("windows" == platform):
    dependence.check_pythonPath()
    dependence.check_gitPath()

if (dependence.check_gh() != True or dependence.check_gh_auth() != True):
    sys.exit(0)

base.cmd_in_dir('../../', 'python', [
    'configure.py', '--branding', 'onlyoffice', '--branding-url',
    'https://github.com/ONLYOFFICE/onlyoffice.git', '--branch', branch_from,
    '--module', 'core desktop builder server mobile', '--update', '1',
    '--update-light', '1', '--clean', '0'
])

# parse configuration
config.parse()

base.git_update('onlyoffice')