{"action":"opened","number":1944,"pull_request":{"url":"https://api.github.com/repos/dotnet/sdk/pulls/1944","id":168151996,"html_url":"https://github.com/dotnet/sdk/pull/1944","diff_url":"https://github.com/dotnet/sdk/pull/1944.diff","patch_url":"https://github.com/dotnet/sdk/pull/1944.patch","issue_url":"https://api.github.com/repos/dotnet/sdk/issues/1944","number":1944,"state":"open","locked":false,"title":"Create scripts to set up build and test environments","user":{"login":"dsplaisted","id":145043,"avatar_url":"https://avatars3.githubusercontent.com/u/145043?v=4","gravatar_id":"","url":"https://api.github.com/users/dsplaisted","html_url":"https://github.com/dsplaisted","followers_url":"https://api.github.com/users/dsplaisted/followers","following_url":"https://api.github.com/users/dsplaisted/following{/other_user}","gists_url":"https://api.github.com/users/dsplaisted/gists{/gist_id}","starred_url":"https://api.github.com/users/dsplaisted/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsplaisted/subscriptions","organizations_url":"https://api.github.com/users/dsplaisted/orgs","repos_url":"https://api.github.com/users/dsplaisted/repos","events_url":"https://api.github.com/users/dsplaisted/events{/privacy}","received_events_url":"https://api.github.com/users/dsplaisted/received_events","type":"User","site_admin":false},"body":"This adds scripts that are created when you run the main build script that will set up a \"build\" or \"test\" environment.\r\n\r\nThe \"build\" environment basically just sets you up so that the version of `dotnet` on the path is the \"Stage 0\" one that would be used by the build script.\r\n\r\nThe \"test\" environment is set up to use the \"Stage 1\" versions of the SDK assets when you build.  So if you want to manually repro a test scenario, or to experiment with local changes, then you can do that in the test environment.\r\n\r\nWe had scripts like this before we moved to repo toolset.  It looks like the `-dogfood` argument to the build script was supposed to do something similar, but that didn't work in my workflow because it doesn't set the environment variables in the calling process.\r\n\r\nWith this PR, the \"build\" environment script is generated as `artifacts\\sdk-build-env.bat` and the test environment script (for the Debug configuration) is generated as `artifacts\\Debug\\sdk-test-env.bat`.  That way there's less duplication of path logic, etc (though it is still duplicated between `build.ps1` and the `TestContext` code).\r\n\r\n@tannergooding @nguerrera @livarcocc @wli3 @peterhuene @johnbeisner ","created_at":"2018-02-09T04:38:12Z","updated_at":"2018-02-09T04:38:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/dotnet/sdk/pulls/1944/commits","review_comments_url":"https://api.github.com/repos/dotnet/sdk/pulls/1944/comments","review_comment_url":"https://api.github.com/repos/dotnet/sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/sdk/issues/1944/comments","statuses_url":"https://api.github.com/repos/dotnet/sdk/statuses/e32884f78a1bbc85e3a877d829b31b14c4ac288e","head":{"label":"dsplaisted:env-scripts","ref":"env-scripts","sha":"e32884f78a1bbc85e3a877d829b31b14c4ac288e","user":{"login":"dsplaisted","id":145043,"avatar_url":"https://avatars3.githubusercontent.com/u/145043?v=4","gravatar_id":"","url":"https://api.github.com/users/dsplaisted","html_url":"https://github.com/dsplaisted","followers_url":"https://api.github.com/users/dsplaisted/followers","following_url":"https://api.github.com/users/dsplaisted/following{/other_user}","gists_url":"https://api.github.com/users/dsplaisted/gists{/gist_id}","starred_url":"https://api.github.com/users/dsplaisted/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsplaisted/subscriptions","organizations_url":"https://api.github.com/users/dsplaisted/orgs","repos_url":"https://api.github.com/users/dsplaisted/repos","events_url":"https://api.github.com/users/dsplaisted/events{/privacy}","received_events_url":"https://api.github.com/users/dsplaisted/received_events","type":"User","site_admin":false},"repo":{"id":71603526,"name":"sdk","full_name":"dsplaisted/sdk","owner":{"login":"dsplaisted","id":145043,"avatar_url":"https://avatars3.githubusercontent.com/u/145043?v=4","gravatar_id":"","url":"https://api.github.com/users/dsplaisted","html_url":"https://github.com/dsplaisted","followers_url":"https://api.github.com/users/dsplaisted/followers","following_url":"https://api.github.com/users/dsplaisted/following{/other_user}","gists_url":"https://api.github.com/users/dsplaisted/gists{/gist_id}","starred_url":"https://api.github.com/users/dsplaisted/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsplaisted/subscriptions","organizations_url":"https://api.github.com/users/dsplaisted/orgs","repos_url":"https://api.github.com/users/dsplaisted/repos","events_url":"https://api.github.com/users/dsplaisted/events{/privacy}","received_events_url":"https://api.github.com/users/dsplaisted/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dsplaisted/sdk","description":"Core functionality needed to create .NET Core projects, that is shared between VisualStudio and CLI","fork":true,"url":"https://api.github.com/repos/dsplaisted/sdk","forks_url":"https://api.github.com/repos/dsplaisted/sdk/forks","keys_url":"https://api.github.com/repos/dsplaisted/sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dsplaisted/sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dsplaisted/sdk/teams","hooks_url":"https://api.github.com/repos/dsplaisted/sdk/hooks","issue_events_url":"https://api.github.com/repos/dsplaisted/sdk/issues/events{/number}","events_url":"https://api.github.com/repos/dsplaisted/sdk/events","assignees_url":"https://api.github.com/repos/dsplaisted/sdk/assignees{/user}","branches_url":"https://api.github.com/repos/dsplaisted/sdk/branches{/branch}","tags_url":"https://api.github.com/repos/dsplaisted/sdk/tags","blobs_url":"https://api.github.com/repos/dsplaisted/sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dsplaisted/sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dsplaisted/sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/dsplaisted/sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dsplaisted/sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/dsplaisted/sdk/languages","stargazers_url":"https://api.github.com/repos/dsplaisted/sdk/stargazers","contributors_url":"https://api.github.com/repos/dsplaisted/sdk/contributors","subscribers_url":"https://api.github.com/repos/dsplaisted/sdk/subscribers","subscription_url":"https://api.github.com/repos/dsplaisted/sdk/subscription","commits_url":"https://api.github.com/repos/dsplaisted/sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/dsplaisted/sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/dsplaisted/sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/dsplaisted/sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/dsplaisted/sdk/contents/{+path}","compare_url":"https://api.github.com/repos/dsplaisted/sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dsplaisted/sdk/merges","archive_url":"https://api.github.com/repos/dsplaisted/sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dsplaisted/sdk/downloads","issues_url":"https://api.github.com/repos/dsplaisted/sdk/issues{/number}","pulls_url":"https://api.github.com/repos/dsplaisted/sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/dsplaisted/sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/dsplaisted/sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dsplaisted/sdk/labels{/name}","releases_url":"https://api.github.com/repos/dsplaisted/sdk/releases{/id}","deployments_url":"https://api.github.com/repos/dsplaisted/sdk/deployments","created_at":"2016-10-21T23:10:24Z","updated_at":"2016-10-21T23:11:54Z","pushed_at":"2018-02-09T04:25:09Z","git_url":"git://github.com/dsplaisted/sdk.git","ssh_url":"git@github.com:dsplaisted/sdk.git","clone_url":"https://github.com/dsplaisted/sdk.git","svn_url":"https://github.com/dsplaisted/sdk","homepage":"","size":3673,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dotnet:release/2.0.0","ref":"release/2.0.0","sha":"195044c13dee08c6e5f4f0009d3b992daecde68d","user":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars0.githubusercontent.com/u/9141961?v=4","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"repo":{"id":63984307,"name":"sdk","full_name":"dotnet/sdk","owner":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars0.githubusercontent.com/u/9141961?v=4","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dotnet/sdk","description":"Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI","fork":false,"url":"https://api.github.com/repos/dotnet/sdk","forks_url":"https://api.github.com/repos/dotnet/sdk/forks","keys_url":"https://api.github.com/repos/dotnet/sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotnet/sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotnet/sdk/teams","hooks_url":"https://api.github.com/repos/dotnet/sdk/hooks","issue_events_url":"https://api.github.com/repos/dotnet/sdk/issues/events{/number}","events_url":"https://api.github.com/repos/dotnet/sdk/events","assignees_url":"https://api.github.com/repos/dotnet/sdk/assignees{/user}","branches_url":"https://api.github.com/repos/dotnet/sdk/branches{/branch}","tags_url":"https://api.github.com/repos/dotnet/sdk/tags","blobs_url":"https://api.github.com/repos/dotnet/sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotnet/sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotnet/sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotnet/sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotnet/sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/dotnet/sdk/languages","stargazers_url":"https://api.github.com/repos/dotnet/sdk/stargazers","contributors_url":"https://api.github.com/repos/dotnet/sdk/contributors","subscribers_url":"https://api.github.com/repos/dotnet/sdk/subscribers","subscription_url":"https://api.github.com/repos/dotnet/sdk/subscription","commits_url":"https://api.github.com/repos/dotnet/sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotnet/sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotnet/sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotnet/sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotnet/sdk/contents/{+path}","compare_url":"https://api.github.com/repos/dotnet/sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotnet/sdk/merges","archive_url":"https://api.github.com/repos/dotnet/sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotnet/sdk/downloads","issues_url":"https://api.github.com/repos/dotnet/sdk/issues{/number}","pulls_url":"https://api.github.com/repos/dotnet/sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/dotnet/sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/dotnet/sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotnet/sdk/labels{/name}","releases_url":"https://api.github.com/repos/dotnet/sdk/releases{/id}","deployments_url":"https://api.github.com/repos/dotnet/sdk/deployments","created_at":"2016-07-22T21:26:02Z","updated_at":"2018-02-08T10:41:43Z","pushed_at":"2018-02-09T03:14:36Z","git_url":"git://github.com/dotnet/sdk.git","ssh_url":"git@github.com:dotnet/sdk.git","clone_url":"https://github.com/dotnet/sdk.git","svn_url":"https://github.com/dotnet/sdk","homepage":"https://dot.net/core","size":3550,"stargazers_count":189,"watchers_count":189,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":113,"mirror_url":null,"archived":false,"open_issues_count":259,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":113,"open_issues":259,"watchers":189,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/sdk/pulls/1944"},"html":{"href":"https://github.com/dotnet/sdk/pull/1944"},"issue":{"href":"https://api.github.com/repos/dotnet/sdk/issues/1944"},"comments":{"href":"https://api.github.com/repos/dotnet/sdk/issues/1944/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/sdk/pulls/1944/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/sdk/pulls/1944/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/sdk/statuses/e32884f78a1bbc85e3a877d829b31b14c4ac288e"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":46,"deletions":13,"changed_files":1}}
{"actor":{"display_login":"dsplaisted"}}