{"action":"created","comment":{"url":"https://api.github.com/repos/semantic-release/semantic-release/pulls/comments/167457597","pull_request_review_id":95677516,"id":167457597,"diff_hunk":"@@ -1 +1,114 @@\n # Using semantic-release with [Travis CI build stages](https://docs.travis-ci.com/user/build-stages)\n+\n+## Environment variables\n+\n+The [Authentication](../usage/ci-configuration.md#authentication) environment variables can be configured in [Travis Repository Settings](https://docs.travis-ci.com/user/environment-variables/#defining-variables-in-repository-Settings) or with the [travis env set CLI](https://github.com/travis-ci/travis.rb#env).\n+\n+Alternatively, the default `NPM_TOKEN` and `GH_TOKEN` can be easily [setup with semantic-release-cli](../usage/ci-configuration.md#automatic-setup-with-semantic-release-cli).\n+\n+## Multiple Node jobs configuration\n+\n+### `.travis.yml` configuration for multiple Node jobs\n+\n+This example is a minimal configuration for **semantic-release** with a build running Node 4, 6 and 8 on Linux and OSX. See [Travis - Customizing the Build](https://docs.travis-ci.com/user/customizing-the-build) for additional configuration options.\n+\n+This example creates a `release` [build stage](https://docs.travis-ci.com/user/build-stages) that [runs `semantic-release` only after all test jobs are successful](../usage/ci-configuration.md#run-semantic-release-only-after-all-tests-succeeded).\n+\n+It's recommended to run the `semantic-release` command in the [Travis `deploy` step](https://docs.travis-ci.com/user/customizing-the-build/#The-Build-Lifecycle) so if an error occurs the build will fail and Travis will send a notification.\n+\n+**Note**: It's not recommended to run the `semantic-release` command in the Travis `script` step as each script in this step will be executed regardless of the outcome of the previous one. See [travis-ci/travis-ci#1066](https://github.com/travis-ci/travis-ci/issues/1066).\n+\n+**Advanced configuration**: Running the tests in the `script` step of the `release` stage is not necessary as the previous stage(s) already ran them. To increase speed, the `script` step of the `release` stage can be overwritten to skip the tests. Note that other commands such as build or compilation might still be required.\n+\n+```yaml\n+language: node_js\n+\n+node_js:\n+  - 8\n+  - 6\n+  - 4","path":"docs/recipes/travis-build-stages.md","position":29,"original_position":29,"commit_id":"a28b51686b263aa28bf38aab16a4dbad69b452c9","original_commit_id":"a28b51686b263aa28bf38aab16a4dbad69b452c9","user":{"login":"gr2m","id":39992,"avatar_url":"https://avatars3.githubusercontent.com/u/39992?v=4","gravatar_id":"","url":"https://api.github.com/users/gr2m","html_url":"https://github.com/gr2m","followers_url":"https://api.github.com/users/gr2m/followers","following_url":"https://api.github.com/users/gr2m/following{/other_user}","gists_url":"https://api.github.com/users/gr2m/gists{/gist_id}","starred_url":"https://api.github.com/users/gr2m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gr2m/subscriptions","organizations_url":"https://api.github.com/users/gr2m/orgs","repos_url":"https://api.github.com/users/gr2m/repos","events_url":"https://api.github.com/users/gr2m/events{/privacy}","received_events_url":"https://api.github.com/users/gr2m/received_events","type":"User","site_admin":false},"body":"Maybe we can leave out `4` already? Either way okay with me","created_at":"2018-02-12T00:45:25Z","updated_at":"2018-02-12T00:45:25Z","html_url":"https://github.com/semantic-release/semantic-release/pull/659#discussion_r167457597","pull_request_url":"https://api.github.com/repos/semantic-release/semantic-release/pulls/659","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/semantic-release/semantic-release/pulls/comments/167457597"},"html":{"href":"https://github.com/semantic-release/semantic-release/pull/659#discussion_r167457597"},"pull_request":{"href":"https://api.github.com/repos/semantic-release/semantic-release/pulls/659"}}},"pull_request":{"url":"https://api.github.com/repos/semantic-release/semantic-release/pulls/659","id":168477489,"html_url":"https://github.com/semantic-release/semantic-release/pull/659","diff_url":"https://github.com/semantic-release/semantic-release/pull/659.diff","patch_url":"https://github.com/semantic-release/semantic-release/pull/659.patch","issue_url":"https://api.github.com/repos/semantic-release/semantic-release/issues/659","number":659,"state":"open","locked":false,"title":"Add Travis Build Stages and CircleCI recipes","user":{"login":"pvdlg","id":3250552,"avatar_url":"https://avatars0.githubusercontent.com/u/3250552?v=4","gravatar_id":"","url":"https://api.github.com/users/pvdlg","html_url":"https://github.com/pvdlg","followers_url":"https://api.github.com/users/pvdlg/followers","following_url":"https://api.github.com/users/pvdlg/following{/other_user}","gists_url":"https://api.github.com/users/pvdlg/gists{/gist_id}","starred_url":"https://api.github.com/users/pvdlg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pvdlg/subscriptions","organizations_url":"https://api.github.com/users/pvdlg/orgs","repos_url":"https://api.github.com/users/pvdlg/repos","events_url":"https://api.github.com/users/pvdlg/events{/privacy}","received_events_url":"https://api.github.com/users/pvdlg/received_events","type":"User","site_admin":false},"body":"Fix #573","created_at":"2018-02-11T22:11:36Z","updated_at":"2018-02-12T00:45:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"450ef20023f68d52f4d9be0bdd1a2a56623c1f22","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":176045539,"url":"https://api.github.com/repos/semantic-release/semantic-release/labels/docs","name":"docs","color":"006b75","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/semantic-release/semantic-release/pulls/659/commits","review_comments_url":"https://api.github.com/repos/semantic-release/semantic-release/pulls/659/comments","review_comment_url":"https://api.github.com/repos/semantic-release/semantic-release/pulls/comments{/number}","comments_url":"https://api.github.com/repos/semantic-release/semantic-release/issues/659/comments","statuses_url":"https://api.github.com/repos/semantic-release/semantic-release/statuses/a28b51686b263aa28bf38aab16a4dbad69b452c9","head":{"label":"semantic-release:travis-circle-recipes","ref":"travis-circle-recipes","sha":"a28b51686b263aa28bf38aab16a4dbad69b452c9","user":{"login":"semantic-release","id":12867925,"avatar_url":"https://avatars1.githubusercontent.com/u/12867925?v=4","gravatar_id":"","url":"https://api.github.com/users/semantic-release","html_url":"https://github.com/semantic-release","followers_url":"https://api.github.com/users/semantic-release/followers","following_url":"https://api.github.com/users/semantic-release/following{/other_user}","gists_url":"https://api.github.com/users/semantic-release/gists{/gist_id}","starred_url":"https://api.github.com/users/semantic-release/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/semantic-release/subscriptions","organizations_url":"https://api.github.com/users/semantic-release/orgs","repos_url":"https://api.github.com/users/semantic-release/repos","events_url":"https://api.github.com/users/semantic-release/events{/privacy}","received_events_url":"https://api.github.com/users/semantic-release/received_events","type":"Organization","site_admin":false},"repo":{"id":24063576,"name":"semantic-release","full_name":"semantic-release/semantic-release","owner":{"login":"semantic-release","id":12867925,"avatar_url":"https://avatars1.githubusercontent.com/u/12867925?v=4","gravatar_id":"","url":"https://api.github.com/users/semantic-release","html_url":"https://github.com/semantic-release","followers_url":"https://api.github.com/users/semantic-release/followers","following_url":"https://api.github.com/users/semantic-release/following{/other_user}","gists_url":"https://api.github.com/users/semantic-release/gists{/gist_id}","starred_url":"https://api.github.com/users/semantic-release/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/semantic-release/subscriptions","organizations_url":"https://api.github.com/users/semantic-release/orgs","repos_url":"https://api.github.com/users/semantic-release/repos","events_url":"https://api.github.com/users/semantic-release/events{/privacy}","received_events_url":"https://api.github.com/users/semantic-release/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/semantic-release/semantic-release","description":":package::rocket: Fully automated version management and package publishing","fork":false,"url":"https://api.github.com/repos/semantic-release/semantic-release","forks_url":"https://api.github.com/repos/semantic-release/semantic-release/forks","keys_url":"https://api.github.com/repos/semantic-release/semantic-release/keys{/key_id}","collaborators_url":"https://api.github.com/repos/semantic-release/semantic-release/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/semantic-release/semantic-release/teams","hooks_url":"https://api.github.com/repos/semantic-release/semantic-release/hooks","issue_events_url":"https://api.github.com/repos/semantic-release/semantic-release/issues/events{/number}","events_url":"https://api.github.com/repos/semantic-release/semantic-release/events","assignees_url":"https://api.github.com/repos/semantic-release/semantic-release/assignees{/user}","branches_url":"https://api.github.com/repos/semantic-release/semantic-release/branches{/branch}","tags_url":"https://api.github.com/repos/semantic-release/semantic-release/tags","blobs_url":"https://api.github.com/repos/semantic-release/semantic-release/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/semantic-release/semantic-release/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/semantic-release/semantic-release/git/refs{/sha}","trees_url":"https://api.github.com/repos/semantic-release/semantic-release/git/trees{/sha}","statuses_url":"https://api.github.com/repos/semantic-release/semantic-release/statuses/{sha}","languages_url":"https://api.github.com/repos/semantic-release/semantic-release/languages","stargazers_url":"https://api.github.com/repos/semantic-release/semantic-release/stargazers","contributors_url":"https://api.github.com/repos/semantic-release/semantic-release/contributors","subscribers_url":"https://api.github.com/repos/semantic-release/semantic-release/subscribers","subscription_url":"https://api.github.com/repos/semantic-release/semantic-release/subscription","commits_url":"https://api.github.com/repos/semantic-release/semantic-release/commits{/sha}","git_commits_url":"https://api.github.com/repos/semantic-release/semantic-release/git/commits{/sha}","comments_url":"https://api.github.com/repos/semantic-release/semantic-release/comments{/number}","issue_comment_url":"https://api.github.com/repos/semantic-release/semantic-release/issues/comments{/number}","contents_url":"https://api.github.com/repos/semantic-release/semantic-release/contents/{+path}","compare_url":"https://api.github.com/repos/semantic-release/semantic-release/compare/{base}...{head}","merges_url":"https://api.github.com/repos/semantic-release/semantic-release/merges","archive_url":"https://api.github.com/repos/semantic-release/semantic-release/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/semantic-release/semantic-release/downloads","issues_url":"https://api.github.com/repos/semantic-release/semantic-release/issues{/number}","pulls_url":"https://api.github.com/repos/semantic-release/semantic-release/pulls{/number}","milestones_url":"https://api.github.com/repos/semantic-release/semantic-release/milestones{/number}","notifications_url":"https://api.github.com/repos/semantic-release/semantic-release/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/semantic-release/semantic-release/labels{/name}","releases_url":"https://api.github.com/repos/semantic-release/semantic-release/releases{/id}","deployments_url":"https://api.github.com/repos/semantic-release/semantic-release/deployments","created_at":"2014-09-15T16:18:28Z","updated_at":"2018-02-11T21:04:30Z","pushed_at":"2018-02-12T00:33:46Z","git_url":"git://github.com/semantic-release/semantic-release.git","ssh_url":"git@github.com:semantic-release/semantic-release.git","clone_url":"https://github.com/semantic-release/semantic-release.git","svn_url":"https://github.com/semantic-release/semantic-release","homepage":"https://semantic-release.gitbooks.io/semantic-release/content","size":903,"stargazers_count":3694,"watchers_count":3694,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":236,"mirror_url":null,"archived":false,"open_issues_count":29,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":236,"open_issues":29,"watchers":3694,"default_branch":"caribou"}},"base":{"label":"semantic-release:caribou","ref":"caribou","sha":"9360caf253a7286bd5ea4983a004b3f5ebfe1ee6","user":{"login":"semantic-release","id":12867925,"avatar_url":"https://avatars1.githubusercontent.com/u/12867925?v=4","gravatar_id":"","url":"https://api.github.com/users/semantic-release","html_url":"https://github.com/semantic-release","followers_url":"https://api.github.com/users/semantic-release/followers","following_url":"https://api.github.com/users/semantic-release/following{/other_user}","gists_url":"https://api.github.com/users/semantic-release/gists{/gist_id}","starred_url":"https://api.github.com/users/semantic-release/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/semantic-release/subscriptions","organizations_url":"https://api.github.com/users/semantic-release/orgs","repos_url":"https://api.github.com/users/semantic-release/repos","events_url":"https://api.github.com/users/semantic-release/events{/privacy}","received_events_url":"https://api.github.com/users/semantic-release/received_events","type":"Organization","site_admin":false},"repo":{"id":24063576,"name":"semantic-release","full_name":"semantic-release/semantic-release","owner":{"login":"semantic-release","id":12867925,"avatar_url":"https://avatars1.githubusercontent.com/u/12867925?v=4","gravatar_id":"","url":"https://api.github.com/users/semantic-release","html_url":"https://github.com/semantic-release","followers_url":"https://api.github.com/users/semantic-release/followers","following_url":"https://api.github.com/users/semantic-release/following{/other_user}","gists_url":"https://api.github.com/users/semantic-release/gists{/gist_id}","starred_url":"https://api.github.com/users/semantic-release/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/semantic-release/subscriptions","organizations_url":"https://api.github.com/users/semantic-release/orgs","repos_url":"https://api.github.com/users/semantic-release/repos","events_url":"https://api.github.com/users/semantic-release/events{/privacy}","received_events_url":"https://api.github.com/users/semantic-release/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/semantic-release/semantic-release","description":":package::rocket: Fully automated version management and package publishing","fork":false,"url":"https://api.github.com/repos/semantic-release/semantic-release","forks_url":"https://api.github.com/repos/semantic-release/semantic-release/forks","keys_url":"https://api.github.com/repos/semantic-release/semantic-release/keys{/key_id}","collaborators_url":"https://api.github.com/repos/semantic-release/semantic-release/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/semantic-release/semantic-release/teams","hooks_url":"https://api.github.com/repos/semantic-release/semantic-release/hooks","issue_events_url":"https://api.github.com/repos/semantic-release/semantic-release/issues/events{/number}","events_url":"https://api.github.com/repos/semantic-release/semantic-release/events","assignees_url":"https://api.github.com/repos/semantic-release/semantic-release/assignees{/user}","branches_url":"https://api.github.com/repos/semantic-release/semantic-release/branches{/branch}","tags_url":"https://api.github.com/repos/semantic-release/semantic-release/tags","blobs_url":"https://api.github.com/repos/semantic-release/semantic-release/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/semantic-release/semantic-release/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/semantic-release/semantic-release/git/refs{/sha}","trees_url":"https://api.github.com/repos/semantic-release/semantic-release/git/trees{/sha}","statuses_url":"https://api.github.com/repos/semantic-release/semantic-release/statuses/{sha}","languages_url":"https://api.github.com/repos/semantic-release/semantic-release/languages","stargazers_url":"https://api.github.com/repos/semantic-release/semantic-release/stargazers","contributors_url":"https://api.github.com/repos/semantic-release/semantic-release/contributors","subscribers_url":"https://api.github.com/repos/semantic-release/semantic-release/subscribers","subscription_url":"https://api.github.com/repos/semantic-release/semantic-release/subscription","commits_url":"https://api.github.com/repos/semantic-release/semantic-release/commits{/sha}","git_commits_url":"https://api.github.com/repos/semantic-release/semantic-release/git/commits{/sha}","comments_url":"https://api.github.com/repos/semantic-release/semantic-release/comments{/number}","issue_comment_url":"https://api.github.com/repos/semantic-release/semantic-release/issues/comments{/number}","contents_url":"https://api.github.com/repos/semantic-release/semantic-release/contents/{+path}","compare_url":"https://api.github.com/repos/semantic-release/semantic-release/compare/{base}...{head}","merges_url":"https://api.github.com/repos/semantic-release/semantic-release/merges","archive_url":"https://api.github.com/repos/semantic-release/semantic-release/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/semantic-release/semantic-release/downloads","issues_url":"https://api.github.com/repos/semantic-release/semantic-release/issues{/number}","pulls_url":"https://api.github.com/repos/semantic-release/semantic-release/pulls{/number}","milestones_url":"https://api.github.com/repos/semantic-release/semantic-release/milestones{/number}","notifications_url":"https://api.github.com/repos/semantic-release/semantic-release/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/semantic-release/semantic-release/labels{/name}","releases_url":"https://api.github.com/repos/semantic-release/semantic-release/releases{/id}","deployments_url":"https://api.github.com/repos/semantic-release/semantic-release/deployments","created_at":"2014-09-15T16:18:28Z","updated_at":"2018-02-11T21:04:30Z","pushed_at":"2018-02-12T00:33:46Z","git_url":"git://github.com/semantic-release/semantic-release.git","ssh_url":"git@github.com:semantic-release/semantic-release.git","clone_url":"https://github.com/semantic-release/semantic-release.git","svn_url":"https://github.com/semantic-release/semantic-release","homepage":"https://semantic-release.gitbooks.io/semantic-release/content","size":903,"stargazers_count":3694,"watchers_count":3694,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":236,"mirror_url":null,"archived":false,"open_issues_count":29,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":236,"open_issues":29,"watchers":3694,"default_branch":"caribou"}},"_links":{"self":{"href":"https://api.github.com/repos/semantic-release/semantic-release/pulls/659"},"html":{"href":"https://github.com/semantic-release/semantic-release/pull/659"},"issue":{"href":"https://api.github.com/repos/semantic-release/semantic-release/issues/659"},"comments":{"href":"https://api.github.com/repos/semantic-release/semantic-release/issues/659/comments"},"review_comments":{"href":"https://api.github.com/repos/semantic-release/semantic-release/pulls/659/comments"},"review_comment":{"href":"https://api.github.com/repos/semantic-release/semantic-release/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/semantic-release/semantic-release/pulls/659/commits"},"statuses":{"href":"https://api.github.com/repos/semantic-release/semantic-release/statuses/a28b51686b263aa28bf38aab16a4dbad69b452c9"}},"author_association":"OWNER"}}
{"actor":{"display_login":"gr2m"}}