diff --git a/scripts/post_build.py b/scripts/post_build.py new file mode 100644 index 0000000..d081cb1 --- /dev/null +++ b/scripts/post_build.py @@ -0,0 +1,8 @@ +import testflight + +def PublishToTestFlight(config): + cmd_text_pattern = "curl http://testflightapp.com/api/builds.json -F file=@'{0}' -F api_token='{1}' -F team_token='{2}' -F notes='This build was uploaded via the upload API'" + cmd_text = cmd_text_pattern.format(config['']) + +def PrintToConsole(config): + print 'Sample post build action!' \ No newline at end of file diff --git a/scripts/settings.py b/scripts/settings.py index d4328b9..b1f628d 100644 --- a/scripts/settings.py +++ b/scripts/settings.py @@ -17,6 +17,10 @@ ios_development_root = { 'files_for_backup': ['BuildSample.sln', 'BuildSample/CoolApp.csproj', 'BuildSample/Info.plist'], 'projects_to_exclude': ['NotCompileApp'], 'info_plist_rel_path': 'BuildSample/Info.plist', + + 'post_build_file': 'post_build.py', + 'post_build_actions' : ['PublishToTestFlight', 'PrintToConsole'], + 'patch': patch.PathcIos, 'parent': ios_root } diff --git a/scripts/testflight.py b/scripts/testflight.py new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/scripts/testflight.py @@ -0,0 +1 @@ +