From b23b800899e2d7538400cafb09ca9b230f490d4b Mon Sep 17 00:00:00 2001 From: Abhishek Date: Sun, 6 Dec 2020 16:42:59 -0600 Subject: [PATCH] Update release.py --- Clocker/release.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Clocker/release.py b/Clocker/release.py index b412d37..8eb6751 100644 --- a/Clocker/release.py +++ b/Clocker/release.py @@ -26,8 +26,12 @@ def increment_version_to(new_version): check_version_command = "agvtool new-marketing-version "+new_version handle_command_execution(check_version_command, os.system(check_version_command)) -def build_release_config(): - build_command = "xcodebuild -scheme Clocker -project Clocker.xcodeproj/ -configuration Release build" +def clean_build_analyze_release_config(): + build_command = "xcodebuild -scheme Clocker -project Clocker.xcodeproj/ clean build analyze" + handle_command_execution(build_command, os.system(build_command)) + +def test_release_config(): + build_command = "xcodebuild -scheme Clocker -project Clocker.xcodeproj/ test" handle_command_execution(build_command, os.system(build_command)) def main(): @@ -37,6 +41,7 @@ def main(): increment_version_to(sys.argv[1]) increment_build_number() - build_release_config() + clean_build_analyze_release_config() + test_release_config() main() \ No newline at end of file