Skip to content

Scripts for setup dev environment for clu cmdlet work #1465

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Dec 11, 2015

Conversation

yugangw-msft
Copy link
Contributor

  1. "SetupEnv.bat" invoke "build-local" and prepares everything to execute cmdlets. Takes about 4 minutes. In detail, it includes
    a. Build source projects
    b. Build clu cmdlet packages and deploy to local command repo
    c. Update and deploy msclu.cfg
    d. Install all cmdlet packages
    e. Add "\drop\clurun\win7-x64" to %path%, so you can run clu commands.
    f. Turn on "DebugCLU", so you can attach debuggers
    g. It warns if dotnet.exe is not under PATH
  2. "BuildCmdlet.bat", let you build individual cmdlet. Take about 20 seconds.
    For example: BuildCmdlet.bat Microsoft.Azure.Commands.Profile

EDIT: push the new commits which prepare osx & linux bits to xcopy over and execute

@@ -9,9 +9,6 @@ if (!($workspaceDirectory))
$env:WORKSPACE = $workspaceDirectory
}

$buildProfileScriptPath = "`"$thisScriptDirectory\BuildProfile.ps1`"" # Guard against spaces in the path
$sourcesRoot = "$workspaceDirectory\src\clu"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i move this after the folder creating script lines, because buildprofile.ps1 appears want to ensure the folder existence.

@markcowl
Copy link
Member

@johanste the clu changes here look fine to me, but can you review?

@yugangw-msft We should work together with Johan to add in a runtime parameter to the build scripts, so we can build out osx and Ubuntu cmdlet packages as well.

%root%\drop\clurun\win7-x64\clurun.exe --install Microsoft.Azure.Commands.Profile
%root%\drop\clurun\win7-x64\clurun.exe --install Microsoft.Azure.Commands.Resources
%root%\drop\clurun\win7-x64\clurun.exe --install Microsoft.Azure.Commands.Websites
%root%\drop\clurun\win7-x64\clurun.exe --install Microsoft.Azure.Commands.Management.Storage
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also add Microsoft.Azure.Commands.Resources.Cmdlets . I'm finalizing a PR to produce that package as well.

@yugangw-msft
Copy link
Contributor Author

@johanste @markcowl I pushed a new commit with the script which prepares osx and linux bits. The 2 folders can xcopy to linux/osx box and execute there, which i have verified in ubuntu 14.04 Once nuget client fixes the bug, the script can avoid propagating 'pkgs' folder; rather should use "clurun --install" to get all set up

@yugangw-msft
Copy link
Contributor Author

reviewed by hovsep

yugangw-msft added a commit that referenced this pull request Dec 11, 2015
Scripts for setup dev environment for clu cmdlet work
@yugangw-msft yugangw-msft merged commit 82afd42 into Azure:clu Dec 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants