{"action":"created","comment":{"url":"https://api.github.com/repos/libgit2/objective-git/pulls/comments/39757939","id":39757939,"diff_hunk":"@@ -74,37 +98,68 @@ main ()\n \n         while read scheme\n         do\n-            build_scheme \"$scheme\" || status=1\n+            # Build each scheme, but stop the entire build if one returns\n+            # a nonzero status code\n+            build_scheme \"$scheme\" || status=1 || break\n         done\n \n         exit $status\n     )\n }\n \n+#\n+# Outputs the first file or directory in pwd that matches the given argument.\n+#\n find_pattern ()\n {\n     ls -d $1 2>/dev/null | head -n 1\n }\n \n-run_xctool ()\n+#\n+# Invokes xcodebuild using either XCWORKSPACE or XCODEPROJ passing BUILD_OPTIONS\n+# and relaying any arguments as additional command-line parameters.\n+#\n+run_build_tool ()\n {\n+    local XCPRETTY_FORMAT_OPTIONS=\n+\n+    if [ -n \"$TRAVIS\" ]\n+    then\n+        # Use a special formatter when running on TravisCI\n+        gem install xcpretty-travis-formatter","path":"script/cibuild","position":121,"original_position":121,"commit_id":"8f45a147865c512f07ca319a2e882407d50803c2","original_commit_id":"8f45a147865c512f07ca319a2e882407d50803c2","user":{"login":"phatblat","id":28851,"avatar_url":"https://avatars.githubusercontent.com/u/28851?v=3","gravatar_id":"","url":"https://api.github.com/users/phatblat","html_url":"https://github.com/phatblat","followers_url":"https://api.github.com/users/phatblat/followers","following_url":"https://api.github.com/users/phatblat/following{/other_user}","gists_url":"https://api.github.com/users/phatblat/gists{/gist_id}","starred_url":"https://api.github.com/users/phatblat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phatblat/subscriptions","organizations_url":"https://api.github.com/users/phatblat/orgs","repos_url":"https://api.github.com/users/phatblat/repos","events_url":"https://api.github.com/users/phatblat/events{/privacy}","received_events_url":"https://api.github.com/users/phatblat/received_events","type":"User","site_admin":false},"body":"Good point. I'm moving it into `.travis.yml`. I had those inline so that they would auto install if someone was testing, but users may need `sudo` if they are using system ruby.","created_at":"2015-09-17T15:16:31Z","updated_at":"2015-09-17T15:16:31Z","html_url":"https://github.com/libgit2/objective-git/pull/521#discussion_r39757939","pull_request_url":"https://api.github.com/repos/libgit2/objective-git/pulls/521","_links":{"self":{"href":"https://api.github.com/repos/libgit2/objective-git/pulls/comments/39757939"},"html":{"href":"https://github.com/libgit2/objective-git/pull/521#discussion_r39757939"},"pull_request":{"href":"https://api.github.com/repos/libgit2/objective-git/pulls/521"}}},"pull_request":{"url":"https://api.github.com/repos/libgit2/objective-git/pulls/521","id":45255215,"html_url":"https://github.com/libgit2/objective-git/pull/521","diff_url":"https://github.com/libgit2/objective-git/pull/521.diff","patch_url":"https://github.com/libgit2/objective-git/pull/521.patch","issue_url":"https://api.github.com/repos/libgit2/objective-git/issues/521","number":521,"state":"open","locked":false,"title":"[Xcode 7] Switch cibuild to use xcodebuild and xcpretty","user":{"login":"phatblat","id":28851,"avatar_url":"https://avatars.githubusercontent.com/u/28851?v=3","gravatar_id":"","url":"https://api.github.com/users/phatblat","html_url":"https://github.com/phatblat","followers_url":"https://api.github.com/users/phatblat/followers","following_url":"https://api.github.com/users/phatblat/following{/other_user}","gists_url":"https://api.github.com/users/phatblat/gists{/gist_id}","starred_url":"https://api.github.com/users/phatblat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phatblat/subscriptions","organizations_url":"https://api.github.com/users/phatblat/orgs","repos_url":"https://api.github.com/users/phatblat/repos","events_url":"https://api.github.com/users/phatblat/events{/privacy}","received_events_url":"https://api.github.com/users/phatblat/received_events","type":"User","site_admin":false},"body":"Due to problems with `xctool` building with Xcode 7 in #516, this change switches the [`cibuild`](https://github.com/libgit2/objective-git/blob/master/script/cibuild) script to build directly with `xcodebuild` and leverage `xcpretty` for cleaning up the output dramatically.\r\n\r\nAdditionally, the `xcpretty-travis-formatter` gem is used to add folding sections to the build log on TravisCI.\r\n\r\n:warning: Requires Xcode 7\r\n\r\nResolves #520 ","created_at":"2015-09-17T06:13:46Z","updated_at":"2015-09-17T15:16:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"16d3db82c8609dc85d4b53bd22e53da362097b2f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/libgit2/objective-git/pulls/521/commits","review_comments_url":"https://api.github.com/repos/libgit2/objective-git/pulls/521/comments","review_comment_url":"https://api.github.com/repos/libgit2/objective-git/pulls/comments{/number}","comments_url":"https://api.github.com/repos/libgit2/objective-git/issues/521/comments","statuses_url":"https://api.github.com/repos/libgit2/objective-git/statuses/8f45a147865c512f07ca319a2e882407d50803c2","head":{"label":"phatblat:ben/xcodebuild+xcpretty","ref":"ben/xcodebuild+xcpretty","sha":"8f45a147865c512f07ca319a2e882407d50803c2","user":{"login":"phatblat","id":28851,"avatar_url":"https://avatars.githubusercontent.com/u/28851?v=3","gravatar_id":"","url":"https://api.github.com/users/phatblat","html_url":"https://github.com/phatblat","followers_url":"https://api.github.com/users/phatblat/followers","following_url":"https://api.github.com/users/phatblat/following{/other_user}","gists_url":"https://api.github.com/users/phatblat/gists{/gist_id}","starred_url":"https://api.github.com/users/phatblat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phatblat/subscriptions","organizations_url":"https://api.github.com/users/phatblat/orgs","repos_url":"https://api.github.com/users/phatblat/repos","events_url":"https://api.github.com/users/phatblat/events{/privacy}","received_events_url":"https://api.github.com/users/phatblat/received_events","type":"User","site_admin":false},"repo":{"id":3606798,"name":"objective-git","full_name":"phatblat/objective-git","owner":{"login":"phatblat","id":28851,"avatar_url":"https://avatars.githubusercontent.com/u/28851?v=3","gravatar_id":"","url":"https://api.github.com/users/phatblat","html_url":"https://github.com/phatblat","followers_url":"https://api.github.com/users/phatblat/followers","following_url":"https://api.github.com/users/phatblat/following{/other_user}","gists_url":"https://api.github.com/users/phatblat/gists{/gist_id}","starred_url":"https://api.github.com/users/phatblat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phatblat/subscriptions","organizations_url":"https://api.github.com/users/phatblat/orgs","repos_url":"https://api.github.com/users/phatblat/repos","events_url":"https://api.github.com/users/phatblat/events{/privacy}","received_events_url":"https://api.github.com/users/phatblat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/phatblat/objective-git","description":"Objective-C bindings to libgit2","fork":true,"url":"https://api.github.com/repos/phatblat/objective-git","forks_url":"https://api.github.com/repos/phatblat/objective-git/forks","keys_url":"https://api.github.com/repos/phatblat/objective-git/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phatblat/objective-git/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phatblat/objective-git/teams","hooks_url":"https://api.github.com/repos/phatblat/objective-git/hooks","issue_events_url":"https://api.github.com/repos/phatblat/objective-git/issues/events{/number}","events_url":"https://api.github.com/repos/phatblat/objective-git/events","assignees_url":"https://api.github.com/repos/phatblat/objective-git/assignees{/user}","branches_url":"https://api.github.com/repos/phatblat/objective-git/branches{/branch}","tags_url":"https://api.github.com/repos/phatblat/objective-git/tags","blobs_url":"https://api.github.com/repos/phatblat/objective-git/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phatblat/objective-git/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phatblat/objective-git/git/refs{/sha}","trees_url":"https://api.github.com/repos/phatblat/objective-git/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phatblat/objective-git/statuses/{sha}","languages_url":"https://api.github.com/repos/phatblat/objective-git/languages","stargazers_url":"https://api.github.com/repos/phatblat/objective-git/stargazers","contributors_url":"https://api.github.com/repos/phatblat/objective-git/contributors","subscribers_url":"https://api.github.com/repos/phatblat/objective-git/subscribers","subscription_url":"https://api.github.com/repos/phatblat/objective-git/subscription","commits_url":"https://api.github.com/repos/phatblat/objective-git/commits{/sha}","git_commits_url":"https://api.github.com/repos/phatblat/objective-git/git/commits{/sha}","comments_url":"https://api.github.com/repos/phatblat/objective-git/comments{/number}","issue_comment_url":"https://api.github.com/repos/phatblat/objective-git/issues/comments{/number}","contents_url":"https://api.github.com/repos/phatblat/objective-git/contents/{+path}","compare_url":"https://api.github.com/repos/phatblat/objective-git/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phatblat/objective-git/merges","archive_url":"https://api.github.com/repos/phatblat/objective-git/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phatblat/objective-git/downloads","issues_url":"https://api.github.com/repos/phatblat/objective-git/issues{/number}","pulls_url":"https://api.github.com/repos/phatblat/objective-git/pulls{/number}","milestones_url":"https://api.github.com/repos/phatblat/objective-git/milestones{/number}","notifications_url":"https://api.github.com/repos/phatblat/objective-git/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phatblat/objective-git/labels{/name}","releases_url":"https://api.github.com/repos/phatblat/objective-git/releases{/id}","created_at":"2012-03-02T22:36:11Z","updated_at":"2015-04-28T12:27:21Z","pushed_at":"2015-09-17T07:23:36Z","git_url":"git://github.com/phatblat/objective-git.git","ssh_url":"git@github.com:phatblat/objective-git.git","clone_url":"https://github.com/phatblat/objective-git.git","svn_url":"https://github.com/phatblat/objective-git","homepage":"","size":61670,"stargazers_count":1,"watchers_count":1,"language":"Objective-C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"libgit2:master","ref":"master","sha":"cfa108931efa3f512eb65d086379f233f332ca32","user":{"login":"libgit2","id":394745,"avatar_url":"https://avatars.githubusercontent.com/u/394745?v=3","gravatar_id":"","url":"https://api.github.com/users/libgit2","html_url":"https://github.com/libgit2","followers_url":"https://api.github.com/users/libgit2/followers","following_url":"https://api.github.com/users/libgit2/following{/other_user}","gists_url":"https://api.github.com/users/libgit2/gists{/gist_id}","starred_url":"https://api.github.com/users/libgit2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/libgit2/subscriptions","organizations_url":"https://api.github.com/users/libgit2/orgs","repos_url":"https://api.github.com/users/libgit2/repos","events_url":"https://api.github.com/users/libgit2/events{/privacy}","received_events_url":"https://api.github.com/users/libgit2/received_events","type":"Organization","site_admin":false},"repo":{"id":1427977,"name":"objective-git","full_name":"libgit2/objective-git","owner":{"login":"libgit2","id":394745,"avatar_url":"https://avatars.githubusercontent.com/u/394745?v=3","gravatar_id":"","url":"https://api.github.com/users/libgit2","html_url":"https://github.com/libgit2","followers_url":"https://api.github.com/users/libgit2/followers","following_url":"https://api.github.com/users/libgit2/following{/other_user}","gists_url":"https://api.github.com/users/libgit2/gists{/gist_id}","starred_url":"https://api.github.com/users/libgit2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/libgit2/subscriptions","organizations_url":"https://api.github.com/users/libgit2/orgs","repos_url":"https://api.github.com/users/libgit2/repos","events_url":"https://api.github.com/users/libgit2/events{/privacy}","received_events_url":"https://api.github.com/users/libgit2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/libgit2/objective-git","description":"Objective-C bindings to libgit2","fork":false,"url":"https://api.github.com/repos/libgit2/objective-git","forks_url":"https://api.github.com/repos/libgit2/objective-git/forks","keys_url":"https://api.github.com/repos/libgit2/objective-git/keys{/key_id}","collaborators_url":"https://api.github.com/repos/libgit2/objective-git/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/libgit2/objective-git/teams","hooks_url":"https://api.github.com/repos/libgit2/objective-git/hooks","issue_events_url":"https://api.github.com/repos/libgit2/objective-git/issues/events{/number}","events_url":"https://api.github.com/repos/libgit2/objective-git/events","assignees_url":"https://api.github.com/repos/libgit2/objective-git/assignees{/user}","branches_url":"https://api.github.com/repos/libgit2/objective-git/branches{/branch}","tags_url":"https://api.github.com/repos/libgit2/objective-git/tags","blobs_url":"https://api.github.com/repos/libgit2/objective-git/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/libgit2/objective-git/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/libgit2/objective-git/git/refs{/sha}","trees_url":"https://api.github.com/repos/libgit2/objective-git/git/trees{/sha}","statuses_url":"https://api.github.com/repos/libgit2/objective-git/statuses/{sha}","languages_url":"https://api.github.com/repos/libgit2/objective-git/languages","stargazers_url":"https://api.github.com/repos/libgit2/objective-git/stargazers","contributors_url":"https://api.github.com/repos/libgit2/objective-git/contributors","subscribers_url":"https://api.github.com/repos/libgit2/objective-git/subscribers","subscription_url":"https://api.github.com/repos/libgit2/objective-git/subscription","commits_url":"https://api.github.com/repos/libgit2/objective-git/commits{/sha}","git_commits_url":"https://api.github.com/repos/libgit2/objective-git/git/commits{/sha}","comments_url":"https://api.github.com/repos/libgit2/objective-git/comments{/number}","issue_comment_url":"https://api.github.com/repos/libgit2/objective-git/issues/comments{/number}","contents_url":"https://api.github.com/repos/libgit2/objective-git/contents/{+path}","compare_url":"https://api.github.com/repos/libgit2/objective-git/compare/{base}...{head}","merges_url":"https://api.github.com/repos/libgit2/objective-git/merges","archive_url":"https://api.github.com/repos/libgit2/objective-git/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/libgit2/objective-git/downloads","issues_url":"https://api.github.com/repos/libgit2/objective-git/issues{/number}","pulls_url":"https://api.github.com/repos/libgit2/objective-git/pulls{/number}","milestones_url":"https://api.github.com/repos/libgit2/objective-git/milestones{/number}","notifications_url":"https://api.github.com/repos/libgit2/objective-git/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/libgit2/objective-git/labels{/name}","releases_url":"https://api.github.com/repos/libgit2/objective-git/releases{/id}","created_at":"2011-03-01T21:28:58Z","updated_at":"2015-09-16T05:52:43Z","pushed_at":"2015-09-17T07:23:37Z","git_url":"git://github.com/libgit2/objective-git.git","ssh_url":"git@github.com:libgit2/objective-git.git","clone_url":"https://github.com/libgit2/objective-git.git","svn_url":"https://github.com/libgit2/objective-git","homepage":"","size":66473,"stargazers_count":739,"watchers_count":739,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":178,"mirror_url":null,"open_issues_count":18,"forks":178,"open_issues":18,"watchers":739,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/libgit2/objective-git/pulls/521"},"html":{"href":"https://github.com/libgit2/objective-git/pull/521"},"issue":{"href":"https://api.github.com/repos/libgit2/objective-git/issues/521"},"comments":{"href":"https://api.github.com/repos/libgit2/objective-git/issues/521/comments"},"review_comments":{"href":"https://api.github.com/repos/libgit2/objective-git/pulls/521/comments"},"review_comment":{"href":"https://api.github.com/repos/libgit2/objective-git/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/libgit2/objective-git/pulls/521/commits"},"statuses":{"href":"https://api.github.com/repos/libgit2/objective-git/statuses/8f45a147865c512f07ca319a2e882407d50803c2"}}}}