Esempio n. 1
0
 def get_deploy_release(self) -> DeployRelease:
     set_home_directory()
     old_version = Version(0, 0, 1)
     new_version = Version(0, 1, 0)
     deploy = False
     release_details = ReleaseDetails(old_version, new_version, deploy,
                                      qt_project_details())
     return DeployRelease(release_details)
Esempio n. 2
0
 def get_prepare_release(self) -> CppGeneration:
     set_home_directory()
     old_version = Version(0, 0, 1)
     new_version = Version(0, 1, 0)
     deploy = False
     release_details = ReleaseDetails(old_version, new_version, deploy,
                                      qt_project_details())
     return CppGeneration(release_details)
Esempio n. 3
0
 def test_get_url_for_starter_project_single_header_for_version(
         self) -> None:
     deploy_release = self.get_deploy_release()
     verify(
         DeployRelease.
         get_url_for_starter_project_single_header_for_version(
             qt_project_details(),
             deploy_release.details.old_version.get_version_text_without_v(
             )))
Esempio n. 4
0
 def test_qt_project_details(self) -> None:
     verify_as_json(qt_project_details())
Esempio n. 5
0
#! /usr/bin/env python3

import scripts_qt.include_approvals_path  # Note This is used!

from scripts.deploy_release import DeployRelease
from scripts.prepare_release import set_working_directory_and_load_current_version
from scripts.release_details import ReleaseDetails
from scripts_qt.qt_project_details import qt_project_details

if __name__ == '__main__':
    project_details = qt_project_details()
    old_version = set_working_directory_and_load_current_version(
        project_details.library_folder_name)
    new_version = old_version.clone()
    details = ReleaseDetails(old_version, new_version, True, project_details)
    deploy_release = DeployRelease(details)
    deploy_release.push_everything_live(start_at_conan=True)
#! /usr/bin/env python3

import scripts_qt.include_approvals_path # Note This is used!

from scripts.prepare_release import build
from scripts_qt.qt_project_details import qt_project_details

if __name__ == '__main__':
    build(lambda v: v.update_patch(), deploy = False, project_details=qt_project_details())
 def test_get_new_branch_name(self) -> None:
     self.assertEqual('approvaltests.cpp.qt.1.2.3',
                      PrepareConanRelease.get_new_branch_name(qt_project_details(), Version(1, 2, 3)))