From dcf99979b34d958354dd6a7167bea3894721c94a Mon Sep 17 00:00:00 2001 From: Rustam Zaitov Date: Sun, 29 Sep 2013 23:07:18 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B0=D1=87=D0=B0=D0=BB=20=D1=80=D0=B5?= =?UTF-8?q?=D0=B0=D0=BB=D0=B8=D0=B7=D0=B0=D1=86=D0=B8=D1=8E=20=D0=B2=D1=8B?= =?UTF-8?q?=D0=B7=D0=BE=D0=B2=D0=BE=D0=B2=20=D0=BC=D0=B5=D1=82=D0=BE=D0=B4?= =?UTF-8?q?=D0=BE=D0=B2=20=D0=BF=D0=BE=D1=81=D0=BB=D0=B5=20=D1=81=D0=B1?= =?UTF-8?q?=D0=BE=D1=80=D0=BA=D0=B8=20=D0=B1=D0=B8=D0=BB=D0=B4=D0=B0.=20?= =?UTF-8?q?=D0=AD=D1=82=D0=BE=20=D0=BD=D0=B0=D0=BF=D1=80=D0=B8=D0=BC=D0=B5?= =?UTF-8?q?=D1=80=20=D0=BF=D0=BE=D0=B7=D0=B2=D0=BE=D0=BB=D0=B8=D1=82=20?= =?UTF-8?q?=D0=BF=D1=83=D0=B1=D0=BB=D0=B8=D0=BA=D0=BE=D0=B2=D0=B0=D1=82?= =?UTF-8?q?=D1=8C=20=D1=81=D0=B1=D0=BE=D1=80=D0=BA=D0=B8=20=D0=B2=20=D1=82?= =?UTF-8?q?=D0=B5=D1=81=D1=82=D1=84=D0=BB=D0=B0=D0=B9=D1=82.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/post_build.py | 8 ++++++++ scripts/settings.py | 4 ++++ scripts/testflight.py | 1 + 3 files changed, 13 insertions(+) create mode 100644 scripts/post_build.py create mode 100644 scripts/testflight.py 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 @@ +