{"action":"created","comment":{"url":"https://api.github.com/repos/alleyinteractive/apple-news/pulls/comments/190035233","pull_request_review_id":122331107,"id":190035233,"diff_hunk":"@@ -1,61 +1,137 @@\n+# Tell Travis to use new container-based infrastructure\n sudo: false\n \n+# Declare project language.\n+# @link http://about.travis-ci.org/docs/user/languages/php/\n language: php\n \n-notifications:\n-  email:\n-    on_success: never\n-    on_failure: change\n-\n+# Specify when Travis should build.\n branches:\n   only:\n     - master\n \n+# Git clone depth.\n+git:\n+  depth: 1\n+\n matrix:\n   include:\n-    - php: 5.3\n-      env: WP_VERSION=latest\n-      dist: precise\n     - php: 5.6\n-      env: WP_VERSION=latest\n+      env: WP_VERSION=latest PHP_LINT=1\n     - php: 7.0\n-      env: WP_VERSION=latest\n+      env: WP_VERSION=latest PHP_LINT=1\n     - php: 7.1\n-      env: WP_VERSION=latest\n+      env: WP_VERSION=latest PHP_LINT=1\n     - php: 7.2\n-      env: WP_VERSION=latest\n-    - php: 5.6\n-      env: WP_VERSION=nightly\n-    # - php: 5.6\n-    #   env: WP_TRAVISCI=phpcs\n+      env: WP_VERSION=latest PHP_LINT=1 WP_PHPCS=1\n   fast_finish: true\n \n+# Use this to prepare the system to install prerequisites or dependencies.\n+# e.g. sudo apt-get update.\n+# Failures in this section will result in build status 'errored'.\n+before_install:\n+\n+# Use this to prepare your build for testing.\n+# e.g. copy database configurations, environment variables, etc.\n+# Failures in this section will result in build status 'errored'.\n before_script:\n+  # Turn off Xdebug. See https://core.trac.wordpress.org/changeset/40138.\n+  - phpenv config-rm xdebug.ini || echo \"Xdebug not available\"\n+\n   - export PATH=\"$HOME/.composer/vendor/bin:$PATH\"\n+\n+  # Couple the PHPUnit version to the PHP version.\n   - |\n-      if [[ ${TRAVIS_PHP_VERSION:0:2} == \"7.\" ]]; then\n-        composer global require \"phpunit/phpunit=5.7.*\"\n-      else\n+    case \"$TRAVIS_PHP_VERSION\" in\n+      7.*)\n+        echo \"Using PHPUnit 6.1\"\n+        composer global require \"phpunit/phpunit=6.1.*\"\n+        ;;\n+      *)\n+        echo \"Using PHPUnit 4.8\"\n         composer global require \"phpunit/phpunit=4.8.*\"\n-      fi\n-  - composer install\n-  - |\n-    if [[ ! -z \"$WP_VERSION\" ]] ; then\n-      bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION\n-    fi","path":".travis.yml","position":77,"original_position":77,"commit_id":"583fa85d5125093ec76330dd59a2b82cbd17b057","original_commit_id":"583fa85d5125093ec76330dd59a2b82cbd17b057","user":{"login":"kevinfodness","id":2650828,"avatar_url":"https://avatars3.githubusercontent.com/u/2650828?v=4","gravatar_id":"","url":"https://api.github.com/users/kevinfodness","html_url":"https://github.com/kevinfodness","followers_url":"https://api.github.com/users/kevinfodness/followers","following_url":"https://api.github.com/users/kevinfodness/following{/other_user}","gists_url":"https://api.github.com/users/kevinfodness/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinfodness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinfodness/subscriptions","organizations_url":"https://api.github.com/users/kevinfodness/orgs","repos_url":"https://api.github.com/users/kevinfodness/repos","events_url":"https://api.github.com/users/kevinfodness/events{/privacy}","received_events_url":"https://api.github.com/users/kevinfodness/received_events","type":"User","site_admin":false},"body":"Better alignment with other Travis configs that we use.","created_at":"2018-05-22T20:05:33Z","updated_at":"2018-05-22T20:05:33Z","html_url":"https://github.com/alleyinteractive/apple-news/pull/507#discussion_r190035233","pull_request_url":"https://api.github.com/repos/alleyinteractive/apple-news/pulls/507","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/alleyinteractive/apple-news/pulls/comments/190035233"},"html":{"href":"https://github.com/alleyinteractive/apple-news/pull/507#discussion_r190035233"},"pull_request":{"href":"https://api.github.com/repos/alleyinteractive/apple-news/pulls/507"}},"in_reply_to_id":190030686},"pull_request":{"url":"https://api.github.com/repos/alleyinteractive/apple-news/pulls/507","id":189229490,"html_url":"https://github.com/alleyinteractive/apple-news/pull/507","diff_url":"https://github.com/alleyinteractive/apple-news/pull/507.diff","patch_url":"https://github.com/alleyinteractive/apple-news/pull/507.patch","issue_url":"https://api.github.com/repos/alleyinteractive/apple-news/issues/507","number":507,"state":"open","locked":false,"title":"AN-101 Update Travis config","user":{"login":"kevinfodness","id":2650828,"avatar_url":"https://avatars3.githubusercontent.com/u/2650828?v=4","gravatar_id":"","url":"https://api.github.com/users/kevinfodness","html_url":"https://github.com/kevinfodness","followers_url":"https://api.github.com/users/kevinfodness/followers","following_url":"https://api.github.com/users/kevinfodness/following{/other_user}","gists_url":"https://api.github.com/users/kevinfodness/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinfodness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinfodness/subscriptions","organizations_url":"https://api.github.com/users/kevinfodness/orgs","repos_url":"https://api.github.com/users/kevinfodness/repos","events_url":"https://api.github.com/users/kevinfodness/events{/privacy}","received_events_url":"https://api.github.com/users/kevinfodness/received_events","type":"User","site_admin":false},"body":"* Update phpcs configuration to use current ruleset.\r\n* Update Travis configuration to run phpcs, and better align with current best practices.\r\n* Move installation steps from `bin/install-wp-tests.sh` to `.travis.yml`.\r\n* Bump minimum required version to PHP 5.6 due to incompatibility with certain tools (e.g., Composer) required for running builds and tests.\r\n* Fix errors in PHP 5.6 related to Facebook and Heading component parsing.\r\n\r\nPrecursor to addressing #96 ","created_at":"2018-05-20T11:17:05Z","updated_at":"2018-05-22T20:05:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ec0310efb4ce8c6a190f33192e70b6e51142f63a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/alleyinteractive/apple-news/pulls/507/commits","review_comments_url":"https://api.github.com/repos/alleyinteractive/apple-news/pulls/507/comments","review_comment_url":"https://api.github.com/repos/alleyinteractive/apple-news/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alleyinteractive/apple-news/issues/507/comments","statuses_url":"https://api.github.com/repos/alleyinteractive/apple-news/statuses/583fa85d5125093ec76330dd59a2b82cbd17b057","head":{"label":"alleyinteractive:AN-101-coding-standards","ref":"AN-101-coding-standards","sha":"583fa85d5125093ec76330dd59a2b82cbd17b057","user":{"login":"alleyinteractive","id":1733454,"avatar_url":"https://avatars0.githubusercontent.com/u/1733454?v=4","gravatar_id":"","url":"https://api.github.com/users/alleyinteractive","html_url":"https://github.com/alleyinteractive","followers_url":"https://api.github.com/users/alleyinteractive/followers","following_url":"https://api.github.com/users/alleyinteractive/following{/other_user}","gists_url":"https://api.github.com/users/alleyinteractive/gists{/gist_id}","starred_url":"https://api.github.com/users/alleyinteractive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alleyinteractive/subscriptions","organizations_url":"https://api.github.com/users/alleyinteractive/orgs","repos_url":"https://api.github.com/users/alleyinteractive/repos","events_url":"https://api.github.com/users/alleyinteractive/events{/privacy}","received_events_url":"https://api.github.com/users/alleyinteractive/received_events","type":"Organization","site_admin":false},"repo":{"id":41824143,"name":"apple-news","full_name":"alleyinteractive/apple-news","owner":{"login":"alleyinteractive","id":1733454,"avatar_url":"https://avatars0.githubusercontent.com/u/1733454?v=4","gravatar_id":"","url":"https://api.github.com/users/alleyinteractive","html_url":"https://github.com/alleyinteractive","followers_url":"https://api.github.com/users/alleyinteractive/followers","following_url":"https://api.github.com/users/alleyinteractive/following{/other_user}","gists_url":"https://api.github.com/users/alleyinteractive/gists{/gist_id}","starred_url":"https://api.github.com/users/alleyinteractive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alleyinteractive/subscriptions","organizations_url":"https://api.github.com/users/alleyinteractive/orgs","repos_url":"https://api.github.com/users/alleyinteractive/repos","events_url":"https://api.github.com/users/alleyinteractive/events{/privacy}","received_events_url":"https://api.github.com/users/alleyinteractive/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alleyinteractive/apple-news","description":null,"fork":true,"url":"https://api.github.com/repos/alleyinteractive/apple-news","forks_url":"https://api.github.com/repos/alleyinteractive/apple-news/forks","keys_url":"https://api.github.com/repos/alleyinteractive/apple-news/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alleyinteractive/apple-news/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alleyinteractive/apple-news/teams","hooks_url":"https://api.github.com/repos/alleyinteractive/apple-news/hooks","issue_events_url":"https://api.github.com/repos/alleyinteractive/apple-news/issues/events{/number}","events_url":"https://api.github.com/repos/alleyinteractive/apple-news/events","assignees_url":"https://api.github.com/repos/alleyinteractive/apple-news/assignees{/user}","branches_url":"https://api.github.com/repos/alleyinteractive/apple-news/branches{/branch}","tags_url":"https://api.github.com/repos/alleyinteractive/apple-news/tags","blobs_url":"https://api.github.com/repos/alleyinteractive/apple-news/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alleyinteractive/apple-news/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alleyinteractive/apple-news/git/refs{/sha}","trees_url":"https://api.github.com/repos/alleyinteractive/apple-news/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alleyinteractive/apple-news/statuses/{sha}","languages_url":"https://api.github.com/repos/alleyinteractive/apple-news/languages","stargazers_url":"https://api.github.com/repos/alleyinteractive/apple-news/stargazers","contributors_url":"https://api.github.com/repos/alleyinteractive/apple-news/contributors","subscribers_url":"https://api.github.com/repos/alleyinteractive/apple-news/subscribers","subscription_url":"https://api.github.com/repos/alleyinteractive/apple-news/subscription","commits_url":"https://api.github.com/repos/alleyinteractive/apple-news/commits{/sha}","git_commits_url":"https://api.github.com/repos/alleyinteractive/apple-news/git/commits{/sha}","comments_url":"https://api.github.com/repos/alleyinteractive/apple-news/comments{/number}","issue_comment_url":"https://api.github.com/repos/alleyinteractive/apple-news/issues/comments{/number}","contents_url":"https://api.github.com/repos/alleyinteractive/apple-news/contents/{+path}","compare_url":"https://api.github.com/repos/alleyinteractive/apple-news/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alleyinteractive/apple-news/merges","archive_url":"https://api.github.com/repos/alleyinteractive/apple-news/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alleyinteractive/apple-news/downloads","issues_url":"https://api.github.com/repos/alleyinteractive/apple-news/issues{/number}","pulls_url":"https://api.github.com/repos/alleyinteractive/apple-news/pulls{/number}","milestones_url":"https://api.github.com/repos/alleyinteractive/apple-news/milestones{/number}","notifications_url":"https://api.github.com/repos/alleyinteractive/apple-news/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alleyinteractive/apple-news/labels{/name}","releases_url":"https://api.github.com/repos/alleyinteractive/apple-news/releases{/id}","deployments_url":"https://api.github.com/repos/alleyinteractive/apple-news/deployments","created_at":"2015-09-02T19:49:43Z","updated_at":"2018-05-21T09:49:34Z","pushed_at":"2018-05-22T15:18:51Z","git_url":"git://github.com/alleyinteractive/apple-news.git","ssh_url":"git@github.com:alleyinteractive/apple-news.git","clone_url":"https://github.com/alleyinteractive/apple-news.git","svn_url":"https://github.com/alleyinteractive/apple-news","homepage":null,"size":9528,"stargazers_count":103,"watchers_count":103,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":34,"mirror_url":null,"archived":false,"open_issues_count":30,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":34,"open_issues":30,"watchers":103,"default_branch":"master"}},"base":{"label":"alleyinteractive:master","ref":"master","sha":"740382bdf33b08fd9e162f9acb8ef5101f925898","user":{"login":"alleyinteractive","id":1733454,"avatar_url":"https://avatars0.githubusercontent.com/u/1733454?v=4","gravatar_id":"","url":"https://api.github.com/users/alleyinteractive","html_url":"https://github.com/alleyinteractive","followers_url":"https://api.github.com/users/alleyinteractive/followers","following_url":"https://api.github.com/users/alleyinteractive/following{/other_user}","gists_url":"https://api.github.com/users/alleyinteractive/gists{/gist_id}","starred_url":"https://api.github.com/users/alleyinteractive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alleyinteractive/subscriptions","organizations_url":"https://api.github.com/users/alleyinteractive/orgs","repos_url":"https://api.github.com/users/alleyinteractive/repos","events_url":"https://api.github.com/users/alleyinteractive/events{/privacy}","received_events_url":"https://api.github.com/users/alleyinteractive/received_events","type":"Organization","site_admin":false},"repo":{"id":41824143,"name":"apple-news","full_name":"alleyinteractive/apple-news","owner":{"login":"alleyinteractive","id":1733454,"avatar_url":"https://avatars0.githubusercontent.com/u/1733454?v=4","gravatar_id":"","url":"https://api.github.com/users/alleyinteractive","html_url":"https://github.com/alleyinteractive","followers_url":"https://api.github.com/users/alleyinteractive/followers","following_url":"https://api.github.com/users/alleyinteractive/following{/other_user}","gists_url":"https://api.github.com/users/alleyinteractive/gists{/gist_id}","starred_url":"https://api.github.com/users/alleyinteractive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alleyinteractive/subscriptions","organizations_url":"https://api.github.com/users/alleyinteractive/orgs","repos_url":"https://api.github.com/users/alleyinteractive/repos","events_url":"https://api.github.com/users/alleyinteractive/events{/privacy}","received_events_url":"https://api.github.com/users/alleyinteractive/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alleyinteractive/apple-news","description":null,"fork":true,"url":"https://api.github.com/repos/alleyinteractive/apple-news","forks_url":"https://api.github.com/repos/alleyinteractive/apple-news/forks","keys_url":"https://api.github.com/repos/alleyinteractive/apple-news/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alleyinteractive/apple-news/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alleyinteractive/apple-news/teams","hooks_url":"https://api.github.com/repos/alleyinteractive/apple-news/hooks","issue_events_url":"https://api.github.com/repos/alleyinteractive/apple-news/issues/events{/number}","events_url":"https://api.github.com/repos/alleyinteractive/apple-news/events","assignees_url":"https://api.github.com/repos/alleyinteractive/apple-news/assignees{/user}","branches_url":"https://api.github.com/repos/alleyinteractive/apple-news/branches{/branch}","tags_url":"https://api.github.com/repos/alleyinteractive/apple-news/tags","blobs_url":"https://api.github.com/repos/alleyinteractive/apple-news/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alleyinteractive/apple-news/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alleyinteractive/apple-news/git/refs{/sha}","trees_url":"https://api.github.com/repos/alleyinteractive/apple-news/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alleyinteractive/apple-news/statuses/{sha}","languages_url":"https://api.github.com/repos/alleyinteractive/apple-news/languages","stargazers_url":"https://api.github.com/repos/alleyinteractive/apple-news/stargazers","contributors_url":"https://api.github.com/repos/alleyinteractive/apple-news/contributors","subscribers_url":"https://api.github.com/repos/alleyinteractive/apple-news/subscribers","subscription_url":"https://api.github.com/repos/alleyinteractive/apple-news/subscription","commits_url":"https://api.github.com/repos/alleyinteractive/apple-news/commits{/sha}","git_commits_url":"https://api.github.com/repos/alleyinteractive/apple-news/git/commits{/sha}","comments_url":"https://api.github.com/repos/alleyinteractive/apple-news/comments{/number}","issue_comment_url":"https://api.github.com/repos/alleyinteractive/apple-news/issues/comments{/number}","contents_url":"https://api.github.com/repos/alleyinteractive/apple-news/contents/{+path}","compare_url":"https://api.github.com/repos/alleyinteractive/apple-news/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alleyinteractive/apple-news/merges","archive_url":"https://api.github.com/repos/alleyinteractive/apple-news/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alleyinteractive/apple-news/downloads","issues_url":"https://api.github.com/repos/alleyinteractive/apple-news/issues{/number}","pulls_url":"https://api.github.com/repos/alleyinteractive/apple-news/pulls{/number}","milestones_url":"https://api.github.com/repos/alleyinteractive/apple-news/milestones{/number}","notifications_url":"https://api.github.com/repos/alleyinteractive/apple-news/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alleyinteractive/apple-news/labels{/name}","releases_url":"https://api.github.com/repos/alleyinteractive/apple-news/releases{/id}","deployments_url":"https://api.github.com/repos/alleyinteractive/apple-news/deployments","created_at":"2015-09-02T19:49:43Z","updated_at":"2018-05-21T09:49:34Z","pushed_at":"2018-05-22T15:18:51Z","git_url":"git://github.com/alleyinteractive/apple-news.git","ssh_url":"git@github.com:alleyinteractive/apple-news.git","clone_url":"https://github.com/alleyinteractive/apple-news.git","svn_url":"https://github.com/alleyinteractive/apple-news","homepage":null,"size":9528,"stargazers_count":103,"watchers_count":103,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":34,"mirror_url":null,"archived":false,"open_issues_count":30,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":34,"open_issues":30,"watchers":103,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alleyinteractive/apple-news/pulls/507"},"html":{"href":"https://github.com/alleyinteractive/apple-news/pull/507"},"issue":{"href":"https://api.github.com/repos/alleyinteractive/apple-news/issues/507"},"comments":{"href":"https://api.github.com/repos/alleyinteractive/apple-news/issues/507/comments"},"review_comments":{"href":"https://api.github.com/repos/alleyinteractive/apple-news/pulls/507/comments"},"review_comment":{"href":"https://api.github.com/repos/alleyinteractive/apple-news/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alleyinteractive/apple-news/pulls/507/commits"},"statuses":{"href":"https://api.github.com/repos/alleyinteractive/apple-news/statuses/583fa85d5125093ec76330dd59a2b82cbd17b057"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"kevinfodness"}}