{"action":"created","comment":{"url":"https://api.github.com/repos/artsy/eidolon/pulls/comments/27666125","id":27666125,"diff_hunk":"@@ -0,0 +1,119 @@\n+# Customise this file, documentation can be found here:\n+# https://github.com/krausefx/fastlane#customise-the-fastfile\n+\n+# Change the syntax highlighting to Ruby\n+\n+# All lines starting with a # are ignored when running `fastlane`\n+\n+# This is the minimum version number required. \n+# Update this, if you use features of a newer version\n+fastlane_version \"0.4.2\" \n+\n+lane :build_for_test do\n+  xcodebuild(\n+    scheme: 'Kiosk',\n+    workspace: 'Kiosk.xcworkspace',\n+    destination: \"OS=8.1,name=iPad Air\",\n+  )\n+end\n+\n+lane :test do\n+  xctest(\n+    destination: \"OS=8.1,name=iPad Air\",\n+  )\n+end\n+\n+lane :oss do\n+  keys = ['ArtsyAPIClientSecret', \n+    'ArtsyAPIClientKey', \n+    'HockeyProductionSecret', \n+    'HockeyBetaSecret', \n+    'MixpanelProductionAPIClientKey', \n+    'MixpanelStagingAPIClientKey', \n+    'CardflightAPIClientKey', \n+    'CardflightAPIStagingClientKey', \n+    'CardflightMerchantAccountToken', \n+    'CardflightMerchantAccountStagingToken', \n+    'BalancedMarketplaceToken', \n+    'BalancedMarketplaceStagingToken']\n+\n+    commands = keys.map { |key|\n+      command = \"bundle exec pod keys set #{key} '-'\"\n+      if key == keys.first\n+        command += \" Eidolon\"\n+      end\n+\n+      command\n+    }.join(' ; ')\n+\n+    sh \"cd .. ; #{commands} ; pod install\"\n+end\n+\n+lane :build_for_deploy do\n+  xcodebuild(\n+    scheme: 'Kiosk',\n+    workspace: 'Kiosk.xcworkspace',\n+    sdk: \"iphoneos\",\n+    configuration: \"release\",\n+  )\n+end\n+\n+lane :deploy do \n+\n+  # Increment build number to current date\n+  build_number = Time.new.strftime(\"%Y.%m.%d\")\n+  increment_build_number({\n+    build_number: build_number,\n+    xcodeproj: './Kiosk.xcodeproj',\n+  })\n+\n+  # Set version number to the one at the top of the CHANGELOG\n+  readme = File.read(\"../docs/CHANGELOG.md\")\n+  latest_version = readme.split(\"\\n## \").first\n+  first_line = latest_version.split(\"\\n\").first\n+  version_number = first_line.split(\" \")[1]\n+\n+  increment_version_number(\n+    release_task: version_number,\n+    xcodeproj: './Kiosk.xcodeproj',\n+  )\n+\n+  # Generate release notes from CHANGELOG\n+  release_notes = latest_version.split(\"\\n\")[1..-1].join(\"\\n\")\n+\n+  # Build\n+  ipa({\n+    workspace: \"Kiosk.xcworkspace\",\n+    configuration: \"Release\",\n+    scheme: \"Kiosk\",\n+    destination: \"build\",\n+    embed: \"fastlane/Distribution_net.artsy.kiosk.beta.mobileprovision\",\n+    identity: \"iPhone Distribution: ART SY INC\",\n+    'no-clean' => ' ',","path":"fastlane/Fastfile","position":92,"original_position":92,"commit_id":"a3f93dd228d05a812ac9f3f956463243b65cd3a8","original_commit_id":"a3f93dd228d05a812ac9f3f956463243b65cd3a8","user":{"login":"orta","id":49038,"avatar_url":"https://avatars.githubusercontent.com/u/49038?v=3","gravatar_id":"","url":"https://api.github.com/users/orta","html_url":"https://github.com/orta","followers_url":"https://api.github.com/users/orta/followers","following_url":"https://api.github.com/users/orta/following{/other_user}","gists_url":"https://api.github.com/users/orta/gists{/gist_id}","starred_url":"https://api.github.com/users/orta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orta/subscriptions","organizations_url":"https://api.github.com/users/orta/orgs","repos_url":"https://api.github.com/users/orta/repos","events_url":"https://api.github.com/users/orta/events{/privacy}","received_events_url":"https://api.github.com/users/orta/received_events","type":"User","site_admin":false},"body":":+1: ","created_at":"2015-04-02T15:14:12Z","updated_at":"2015-04-02T15:14:12Z","html_url":"https://github.com/artsy/eidolon/pull/409#discussion_r27666125","pull_request_url":"https://api.github.com/repos/artsy/eidolon/pulls/409","_links":{"self":{"href":"https://api.github.com/repos/artsy/eidolon/pulls/comments/27666125"},"html":{"href":"https://github.com/artsy/eidolon/pull/409#discussion_r27666125"},"pull_request":{"href":"https://api.github.com/repos/artsy/eidolon/pulls/409"}}},"pull_request":{"url":"https://api.github.com/repos/artsy/eidolon/pulls/409","id":32360066,"html_url":"https://github.com/artsy/eidolon/pull/409","diff_url":"https://github.com/artsy/eidolon/pull/409.diff","patch_url":"https://github.com/artsy/eidolon/pull/409.patch","issue_url":"https://api.github.com/repos/artsy/eidolon/issues/409","number":409,"state":"open","locked":false,"title":"@orta => Use Fastlane for automated deploys","user":{"login":"ashfurrow","id":498212,"avatar_url":"https://avatars.githubusercontent.com/u/498212?v=3","gravatar_id":"","url":"https://api.github.com/users/ashfurrow","html_url":"https://github.com/ashfurrow","followers_url":"https://api.github.com/users/ashfurrow/followers","following_url":"https://api.github.com/users/ashfurrow/following{/other_user}","gists_url":"https://api.github.com/users/ashfurrow/gists{/gist_id}","starred_url":"https://api.github.com/users/ashfurrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashfurrow/subscriptions","organizations_url":"https://api.github.com/users/ashfurrow/orgs","repos_url":"https://api.github.com/users/ashfurrow/repos","events_url":"https://api.github.com/users/ashfurrow/events{/privacy}","received_events_url":"https://api.github.com/users/ashfurrow/received_events","type":"User","site_admin":false},"body":"Fixes #359.\r\n\r\nNeed to get the following up and running:\r\n\r\n- [x] Tests running\r\n- [x] OSS install running\r\n- [x] Signing\r\n- [x] Updates version/build numbers\r\n- [x] Generates release notes from CHANGELOG\r\n- [x] Deploys to Hockey\r\n- [x] Post-deploy slack notifications\r\n- [x] Tag the build\r\n- [x] Remove Makefile\r\n- [x] Migrate Travis config\r\n- [x] Update README/docs","created_at":"2015-03-31T20:04:32Z","updated_at":"2015-04-02T15:14:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d7f8ac8379fd67497c7f69f82290f09175456857","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/artsy/eidolon/pulls/409/commits","review_comments_url":"https://api.github.com/repos/artsy/eidolon/pulls/409/comments","review_comment_url":"https://api.github.com/repos/artsy/eidolon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/artsy/eidolon/issues/409/comments","statuses_url":"https://api.github.com/repos/artsy/eidolon/statuses/a3f93dd228d05a812ac9f3f956463243b65cd3a8","head":{"label":"artsy:fastlane","ref":"fastlane","sha":"a3f93dd228d05a812ac9f3f956463243b65cd3a8","user":{"login":"artsy","id":546231,"avatar_url":"https://avatars.githubusercontent.com/u/546231?v=3","gravatar_id":"","url":"https://api.github.com/users/artsy","html_url":"https://github.com/artsy","followers_url":"https://api.github.com/users/artsy/followers","following_url":"https://api.github.com/users/artsy/following{/other_user}","gists_url":"https://api.github.com/users/artsy/gists{/gist_id}","starred_url":"https://api.github.com/users/artsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artsy/subscriptions","organizations_url":"https://api.github.com/users/artsy/orgs","repos_url":"https://api.github.com/users/artsy/repos","events_url":"https://api.github.com/users/artsy/events{/privacy}","received_events_url":"https://api.github.com/users/artsy/received_events","type":"Organization","site_admin":false},"repo":{"id":22613546,"name":"eidolon","full_name":"artsy/eidolon","owner":{"login":"artsy","id":546231,"avatar_url":"https://avatars.githubusercontent.com/u/546231?v=3","gravatar_id":"","url":"https://api.github.com/users/artsy","html_url":"https://github.com/artsy","followers_url":"https://api.github.com/users/artsy/followers","following_url":"https://api.github.com/users/artsy/following{/other_user}","gists_url":"https://api.github.com/users/artsy/gists{/gist_id}","starred_url":"https://api.github.com/users/artsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artsy/subscriptions","organizations_url":"https://api.github.com/users/artsy/orgs","repos_url":"https://api.github.com/users/artsy/repos","events_url":"https://api.github.com/users/artsy/events{/privacy}","received_events_url":"https://api.github.com/users/artsy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/artsy/eidolon","description":"The Artsy Auction Kiosk App","fork":false,"url":"https://api.github.com/repos/artsy/eidolon","forks_url":"https://api.github.com/repos/artsy/eidolon/forks","keys_url":"https://api.github.com/repos/artsy/eidolon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/artsy/eidolon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/artsy/eidolon/teams","hooks_url":"https://api.github.com/repos/artsy/eidolon/hooks","issue_events_url":"https://api.github.com/repos/artsy/eidolon/issues/events{/number}","events_url":"https://api.github.com/repos/artsy/eidolon/events","assignees_url":"https://api.github.com/repos/artsy/eidolon/assignees{/user}","branches_url":"https://api.github.com/repos/artsy/eidolon/branches{/branch}","tags_url":"https://api.github.com/repos/artsy/eidolon/tags","blobs_url":"https://api.github.com/repos/artsy/eidolon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/artsy/eidolon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/artsy/eidolon/git/refs{/sha}","trees_url":"https://api.github.com/repos/artsy/eidolon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/artsy/eidolon/statuses/{sha}","languages_url":"https://api.github.com/repos/artsy/eidolon/languages","stargazers_url":"https://api.github.com/repos/artsy/eidolon/stargazers","contributors_url":"https://api.github.com/repos/artsy/eidolon/contributors","subscribers_url":"https://api.github.com/repos/artsy/eidolon/subscribers","subscription_url":"https://api.github.com/repos/artsy/eidolon/subscription","commits_url":"https://api.github.com/repos/artsy/eidolon/commits{/sha}","git_commits_url":"https://api.github.com/repos/artsy/eidolon/git/commits{/sha}","comments_url":"https://api.github.com/repos/artsy/eidolon/comments{/number}","issue_comment_url":"https://api.github.com/repos/artsy/eidolon/issues/comments{/number}","contents_url":"https://api.github.com/repos/artsy/eidolon/contents/{+path}","compare_url":"https://api.github.com/repos/artsy/eidolon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/artsy/eidolon/merges","archive_url":"https://api.github.com/repos/artsy/eidolon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/artsy/eidolon/downloads","issues_url":"https://api.github.com/repos/artsy/eidolon/issues{/number}","pulls_url":"https://api.github.com/repos/artsy/eidolon/pulls{/number}","milestones_url":"https://api.github.com/repos/artsy/eidolon/milestones{/number}","notifications_url":"https://api.github.com/repos/artsy/eidolon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/artsy/eidolon/labels{/name}","releases_url":"https://api.github.com/repos/artsy/eidolon/releases{/id}","created_at":"2014-08-04T17:38:26Z","updated_at":"2015-04-01T22:27:14Z","pushed_at":"2015-04-02T02:02:55Z","git_url":"git://github.com/artsy/eidolon.git","ssh_url":"git@github.com:artsy/eidolon.git","clone_url":"https://github.com/artsy/eidolon.git","svn_url":"https://github.com/artsy/eidolon","homepage":"http://artsy.github.io/blog/2014/11/13/eidolon-retrospective/","size":58183,"stargazers_count":487,"watchers_count":487,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":36,"forks":32,"open_issues":36,"watchers":487,"default_branch":"master"}},"base":{"label":"artsy:master","ref":"master","sha":"6157d8291dc5aefdcd19af53e13743fda1cdcbe7","user":{"login":"artsy","id":546231,"avatar_url":"https://avatars.githubusercontent.com/u/546231?v=3","gravatar_id":"","url":"https://api.github.com/users/artsy","html_url":"https://github.com/artsy","followers_url":"https://api.github.com/users/artsy/followers","following_url":"https://api.github.com/users/artsy/following{/other_user}","gists_url":"https://api.github.com/users/artsy/gists{/gist_id}","starred_url":"https://api.github.com/users/artsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artsy/subscriptions","organizations_url":"https://api.github.com/users/artsy/orgs","repos_url":"https://api.github.com/users/artsy/repos","events_url":"https://api.github.com/users/artsy/events{/privacy}","received_events_url":"https://api.github.com/users/artsy/received_events","type":"Organization","site_admin":false},"repo":{"id":22613546,"name":"eidolon","full_name":"artsy/eidolon","owner":{"login":"artsy","id":546231,"avatar_url":"https://avatars.githubusercontent.com/u/546231?v=3","gravatar_id":"","url":"https://api.github.com/users/artsy","html_url":"https://github.com/artsy","followers_url":"https://api.github.com/users/artsy/followers","following_url":"https://api.github.com/users/artsy/following{/other_user}","gists_url":"https://api.github.com/users/artsy/gists{/gist_id}","starred_url":"https://api.github.com/users/artsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artsy/subscriptions","organizations_url":"https://api.github.com/users/artsy/orgs","repos_url":"https://api.github.com/users/artsy/repos","events_url":"https://api.github.com/users/artsy/events{/privacy}","received_events_url":"https://api.github.com/users/artsy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/artsy/eidolon","description":"The Artsy Auction Kiosk App","fork":false,"url":"https://api.github.com/repos/artsy/eidolon","forks_url":"https://api.github.com/repos/artsy/eidolon/forks","keys_url":"https://api.github.com/repos/artsy/eidolon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/artsy/eidolon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/artsy/eidolon/teams","hooks_url":"https://api.github.com/repos/artsy/eidolon/hooks","issue_events_url":"https://api.github.com/repos/artsy/eidolon/issues/events{/number}","events_url":"https://api.github.com/repos/artsy/eidolon/events","assignees_url":"https://api.github.com/repos/artsy/eidolon/assignees{/user}","branches_url":"https://api.github.com/repos/artsy/eidolon/branches{/branch}","tags_url":"https://api.github.com/repos/artsy/eidolon/tags","blobs_url":"https://api.github.com/repos/artsy/eidolon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/artsy/eidolon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/artsy/eidolon/git/refs{/sha}","trees_url":"https://api.github.com/repos/artsy/eidolon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/artsy/eidolon/statuses/{sha}","languages_url":"https://api.github.com/repos/artsy/eidolon/languages","stargazers_url":"https://api.github.com/repos/artsy/eidolon/stargazers","contributors_url":"https://api.github.com/repos/artsy/eidolon/contributors","subscribers_url":"https://api.github.com/repos/artsy/eidolon/subscribers","subscription_url":"https://api.github.com/repos/artsy/eidolon/subscription","commits_url":"https://api.github.com/repos/artsy/eidolon/commits{/sha}","git_commits_url":"https://api.github.com/repos/artsy/eidolon/git/commits{/sha}","comments_url":"https://api.github.com/repos/artsy/eidolon/comments{/number}","issue_comment_url":"https://api.github.com/repos/artsy/eidolon/issues/comments{/number}","contents_url":"https://api.github.com/repos/artsy/eidolon/contents/{+path}","compare_url":"https://api.github.com/repos/artsy/eidolon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/artsy/eidolon/merges","archive_url":"https://api.github.com/repos/artsy/eidolon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/artsy/eidolon/downloads","issues_url":"https://api.github.com/repos/artsy/eidolon/issues{/number}","pulls_url":"https://api.github.com/repos/artsy/eidolon/pulls{/number}","milestones_url":"https://api.github.com/repos/artsy/eidolon/milestones{/number}","notifications_url":"https://api.github.com/repos/artsy/eidolon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/artsy/eidolon/labels{/name}","releases_url":"https://api.github.com/repos/artsy/eidolon/releases{/id}","created_at":"2014-08-04T17:38:26Z","updated_at":"2015-04-01T22:27:14Z","pushed_at":"2015-04-02T02:02:55Z","git_url":"git://github.com/artsy/eidolon.git","ssh_url":"git@github.com:artsy/eidolon.git","clone_url":"https://github.com/artsy/eidolon.git","svn_url":"https://github.com/artsy/eidolon","homepage":"http://artsy.github.io/blog/2014/11/13/eidolon-retrospective/","size":58183,"stargazers_count":487,"watchers_count":487,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":36,"forks":32,"open_issues":36,"watchers":487,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/artsy/eidolon/pulls/409"},"html":{"href":"https://github.com/artsy/eidolon/pull/409"},"issue":{"href":"https://api.github.com/repos/artsy/eidolon/issues/409"},"comments":{"href":"https://api.github.com/repos/artsy/eidolon/issues/409/comments"},"review_comments":{"href":"https://api.github.com/repos/artsy/eidolon/pulls/409/comments"},"review_comment":{"href":"https://api.github.com/repos/artsy/eidolon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/artsy/eidolon/pulls/409/commits"},"statuses":{"href":"https://api.github.com/repos/artsy/eidolon/statuses/a3f93dd228d05a812ac9f3f956463243b65cd3a8"}}}}