def __init__(self, manifest, version, build_type=None): self._manifest = yaml.load(manifest) self.version = version self.build_type = build_type manifest_settings = self._manifest['settings'] if build_type: manifest_settings['build_type'] = build_type self.settings = Settings.factory(manifest_settings) self.projects = self._render_projects()
def __init__(self, manifest, version, build_type=None, parallel=True): self._manifest = yaml.load(manifest) self.version = version self.build_type = build_type manifest_settings = self._manifest["settings"] if version: manifest_settings["version"] = version if build_type: manifest_settings["build_type"] = build_type if build_type == "docker": parallel = False manifest_settings["parallel_build"] = parallel self.settings = Settings.factory(manifest_settings) self.projects = self._render_projects()
def __init__(self, manifest, version, build_type=None, parallel=True, limit_projects=None): self._manifest = yaml.load(manifest) self.version = version self.build_type = build_type manifest_settings = self._manifest['settings'] if version: manifest_settings['version'] = version if build_type: manifest_settings['build_type'] = build_type if build_type == 'docker': parallel = False manifest_settings['parallel_build'] = parallel self.settings = Settings.factory(manifest_settings) self.projects = self._render_projects(limit_projects)
def __init__(self, manifest, version): self._manifest = yaml.load(manifest) self.version = version self.settings = Settings.factory(self._manifest['settings']) self.projects = self._render_projects()