-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
7ec982f
script to setup CLU environment
yugangw-msft e6ea96a
remove setlocal so environment variable values change can be propagated
yugangw-msft ef34fa4
merge with johan's change in the latest clu branch
yugangw-msft 4050653
Merge branch 'clu' into cluscript
yugangw-msft 4108f1f
prepare osx/linux bits which can xcopy and execute
yugangw-msft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| RepositoryPath: C:\repos\Microsoft.CLU\artifacts\CommandPkgs\win7-x64\Debug | ||
| RepositoryPath:TOFILL | ||
| RuntimePackage: Microsoft.CLU.Commands | ||
| RuntimeVersion: 0.0.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| echo off | ||
| Setlocal EnableDelayedExpansion | ||
|
|
||
| set DebugCLU= | ||
| set root=%~dp0..\.. | ||
| if not "%1"=="" ( | ||
| @powershell -file %~dp0\BuildDrop.ps1 -commandPackagesToBuild %1 --excludeCluRun | ||
| %root%\drop\clurun\win7-x64\clurun.exe --install %1 | ||
| ) else ( | ||
| @powershell -file %~dp0\BuildDrop.ps1 -excludeCluRun | ||
| %root%\drop\clurun\win7-x64\clurun.exe --install | ||
| %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.Resources.Cmdlets | ||
| %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 | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| echo off | ||
|
|
||
| where dotnet.exe | ||
| if ERRORLEVEL 1 ( | ||
| echo Please install 'dotnet', say from 'https://azureclu.blob.core.windows.net/tools/dotnet-win-x64.latest.zip', unzip, then add its bin folder to the PATH | ||
| exit /B | ||
| ) | ||
|
|
||
| set root=%~dp0..\.. | ||
| echo Build all clu source projects | ||
| "%ProgramFiles(x86)%\MSBuild\14.0\Bin\msbuild" %root%\build.proj /t:build >NUL | ||
|
|
||
| if ERRORLEVEL 1 ( | ||
| echo Build source project failed. To repro, run: msbuild build.proj /t:build | ||
| ) | ||
|
|
||
| REM build cmdlets packages | ||
| @powershell -file %~dp0\BuildDrop.ps1 | ||
|
|
||
| REM cook a msclu.cfg with a correct local repro path. | ||
| set mscluCfg=%root%\drop\clurun\win7-x64\msclu.cfg | ||
| if not exist %mscluCfg% ( | ||
| copy /Y %root%\src\CLU\clurun\msclu.cfg %root%\drop\clurun\win7-x64 | ||
| ) | ||
| echo ^(Get-Content "%mscluCfg%"^) ^| ForEach-Object { $_ -replace "TOFILL", "%root%\drop\CommandRepo" } ^| Set-Content "%mscluCfg%"^ >"%temp%\Rep.ps1" | ||
| @powershell -file %temp%\Rep.ps1 | ||
|
|
||
| set DebugCLU= | ||
| %root%\drop\clurun\win7-x64\clurun.exe --install | ||
| %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.Resources.Cmdlets | ||
| %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 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
| set DebugCLU=1 | ||
| set Path=%Path%;%root%\drop\clurun\win7-x64 | ||
|
|
||
| REM setup osx and linux bits which can be xcopied and run. | ||
| REM note, for known nuget bugs, skip --install by copying over cmdlet packages. | ||
| xcopy %root%\drop\clurun\win7-x64\pkgs %root%\drop\clurun\osx.10.10-x64\pkgs /S /Q /I /Y | ||
| copy /Y %root%\drop\clurun\win7-x64\azure.lx %root%\drop\clurun\osx.10.10-x64 | ||
| copy /Y %root%\drop\clurun\win7-x64\msclu.cfg %root%\drop\clurun\osx.10.10-x64 | ||
| copy /Y %~dp0\azure.sh %root%\drop\clurun\osx.10.10-x64 | ||
|
|
||
| xcopy %root%\drop\clurun\win7-x64\pkgs %root%\drop\clurun\ubuntu.14.04-x64\pkgs /S /Q /I /Y | ||
| copy /Y %root%\drop\clurun\win7-x64\azure.lx %root%\drop\clurun\ubuntu.14.04-x64 | ||
| copy /Y %root%\drop\clurun\win7-x64\msclu.cfg %root%\drop\clurun\ubuntu.14.04-x64 | ||
| copy /Y %~dp0\azure.sh %root%\drop\clurun\ubuntu.14.04-x64 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| #!/bin/bash | ||
| if [ -z ${CmdletSessionID} ] | ||
| then | ||
| export CmdletSessionID=$PPID | ||
| fi | ||
| SCRIPTPATH=$(dirname "$0") | ||
| $SCRIPTPATH/clurun -s azure -r $SCRIPTPATH/azure.lx $* |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.