示例#1
0
def metric():
    metric_dir = configuration.get_value('build-dir')+'metric/'
    configuration.add('metric-dir', metric_dir)
    initialization.prepare_dir(metric_dir)

    phploc.execute()
    phpmetrics.execute()
    pdepend.execute()
def metric():
    metric_dir = configuration.get_value('build-dir') + 'metric/'
    configuration.add('metric-dir', metric_dir)
    initialization.prepare_dir(metric_dir)

    phploc.execute()
    phpmetrics.execute()
    pdepend.execute()
def run(project_dir):
    os.chdir(project_dir)

    add_project_dir(project_dir)
    add_checker_dir()

    configuration.add('build-dir', project_dir+'build/')
    configuration.load()

    composer.initialization()
    downloader.initialization()
示例#4
0
def run(project_dir):
    os.chdir(project_dir)

    add_project_dir(project_dir)
    add_checker_dir()

    configuration.add('build-dir', project_dir + 'build/')
    configuration.load()

    composer.initialization()
    downloader.initialization()
def update(php_bin):
    print('>>> PHP version is: '+php_bin)

    add_project_dir(helper.get_project_dir())
    add_checker_dir()

    configuration.add('php', php_bin)
    configuration.load_default()

    composer.initialization()
    composer.update()
    downloader.update()
示例#6
0
def update(php_bin):
    print('>>> PHP version is: ' + php_bin)

    add_project_dir(helper.get_project_dir())
    add_checker_dir()

    configuration.add('php', php_bin)
    configuration.load_default()

    composer.initialization()
    composer.update()
    downloader.update()
示例#7
0
def prepare_check():
    check_dir = configuration.get_value('build-dir')+'check/'
    configuration.add('check-dir', check_dir)
    initialization.prepare_dir(check_dir)

    composer.project_installation()
示例#8
0
def coverage():
    prepare_check()
    configuration.add('phpunit-coverage', 'true')

    phpunit.execute()
def prepare_check():
    check_dir = configuration.get_value('build-dir') + 'check/'
    configuration.add('check-dir', check_dir)
    initialization.prepare_dir(check_dir)

    composer.project_installation()
示例#10
0
def coverage():
    prepare_check()
    configuration.add('phpunit-coverage', 'true')

    phpunit.execute()
def add_checker_dir():
    checker_dir = os.path.split(os.path.dirname(os.path.realpath(__file__)))[0]+'/'
    print('>>> Checker dir: '+checker_dir)
    configuration.add('checker-dir', checker_dir)
def add_project_dir(project_dir):
    print('>>> Project dir: '+project_dir)
    configuration.add('project-dir', project_dir)
示例#13
0
def add_checker_dir():
    checker_dir = os.path.split(os.path.dirname(
        os.path.realpath(__file__)))[0] + '/'
    print('>>> Checker dir: ' + checker_dir)
    configuration.add('checker-dir', checker_dir)
示例#14
0
def add_project_dir(project_dir):
    print('>>> Project dir: ' + project_dir)
    configuration.add('project-dir', project_dir)