def run_step(self, data): if environment.use_dry_run(): if not file_util.is_file(DryRunStep.DRY_RUN_COMPOSE_FILENAME): self.simple_dry_run(data) else: self.compose_dry_run(data) return data
def run(name): if file_util.is_file(PACKAGE_JSON): log.info('Found a "%s", checking old dependencies.', PACKAGE_JSON) prepare() check(name) else: log.debug('No file named "%s" found. No dependencies check will be done.', PACKAGE_JSON)
def run_step(self, data): if not file_util.is_file(UnitTestStep.UNIT_TEST_COMPOSE_FILENAME): self.log.info('No file named "%s" found. No unit tests will be run.', UnitTestStep.UNIT_TEST_COMPOSE_FILENAME) return data self.run_unit_tests(data) return data
def run_step(self, data): if not file_util.is_file(DockerFileStep.FILE_DOCKERFILE): self.handle_step_error('Could not find Dockerfile at "{}"'.format( DockerFileStep.FILE_DOCKERFILE)) data[pipeline_data.DOCKERFILE_FILE] = file_util.get_absolue_path( DockerFileStep.FILE_DOCKERFILE ) return data
def run_step(self, data): if not file_util.is_file( IntegrationTestStep.INTEGRATION_TEST_COMPOSE_FILENAME): self.log.info( 'No file named "%s" found. No integration tests will be run.', IntegrationTestStep.INTEGRATION_TEST_COMPOSE_FILENAME) return data self.run_integration_tests(data) return data