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()
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()
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()
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()
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()
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)
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)