def disable_test_all_conan_versions_build(self) -> None: set_home_directory() releases = PrepareConanRelease.get_accepted_approval_releases( ProjectDetails()) conan_details = ConanReleaseDetails(ProjectDetails()) for release in releases: DeployConanRelease.test_conan_build_passes(conan_details, release)
def test_conandata_yml(self) -> None: text = '' for i in range(3): text += PrepareConanRelease.create_conandata_yml_text( ProjectDetails(), Version(1, 1, i), "single_header_sha", "licence_sha") verify(text)
def prepare_everything(self) -> None: self.check_pre_conditions_for_publish() PrepareConanRelease.check_preconditions(self.details) CppGeneration.prepare_release(self.details) self.update_starter_project() self.check_starter_project_builds() PrepareConanRelease.prepare_release(self.details) PrepareDocumentationRelease.prepare_documentation(self.details) self.details.new_version.write(release_constants.build_dir) self.add_to_git() self.check_changes()
def test_get_new_branch_name(self) -> None: self.assertEqual( 'approvaltests.cpp.1.2.3', PrepareConanRelease.get_new_branch_name(ProjectDetails(), Version(1, 2, 3)))
def test_conan_version_number(self) -> None: self.assertIn( '8.9.2', PrepareConanRelease.get_accepted_approval_releases( ProjectDetails()))
def test_config_yml(self) -> None: text = '' for i in range(3): text += PrepareConanRelease.create_conan_config_yml_text( Version(1, 1, i)) verify(text)