Merge remote-tracking branch 'origin/master' into jimtru-AddGitCommitToPSVersionTable

This commit is contained in:
Jim Truher (MSFT) 2016-05-18 17:07:39 -07:00
commit 777b2ec7d8
12 changed files with 22 additions and 18 deletions

2
.gitignore vendored
View File

@ -1,6 +1,8 @@
bin/
obj/
debug/
Packages/
src/monad/
project.lock.json
*-tests.xml

View File

@ -31,7 +31,7 @@ Get PowerShell
| Get **Binaries** | [Releases][] | [Artifacts][] | [Artifacts][] | [Releases][] | TBD |
Building summary: `Start-PSBuild` from the module
`./PowerShellGitHubDev.psm1` (self-host on Linux / OS X)
`./build.psm1` (self-host on Linux / OS X)
See [Linux releases](docs/installation/linux.md) and
[Windows artifacts](docs/installation/windows.md) installation

View File

@ -18,12 +18,12 @@ install:
- ps: Set-Content c:\users\appveyor\.ssh\id_rsa $fileContent
- git config --global url.git@github.com:.insteadOf https://github.com/
- git submodule update --init -- src/windows-build src/Modules/Pester
- ps: Import-Module .\PowerShellGitHubDev.psm1; Start-PSBootstrap
- ps: Import-Module .\build.psm1; Start-PSBootstrap
build_script:
- ps: |
$ErrorActionPreference = 'Stop'
Import-Module .\PowerShellGitHubDev.psm1
Import-Module .\build.psm1
Start-PSBuild -Publish
Start-PSBuild -FullCLR

View File

@ -821,7 +821,7 @@ function script:Start-NativeExecution([scriptblock]$sb)
# point to the obsolete value
if ($LASTEXITCODE -ne 0)
{
throw "Execution failed with exit code $LASTEXITCODE"
throw "Execution of {$sb} failed with exit code $LASTEXITCODE"
}
}
finally
@ -836,7 +836,7 @@ function script:Get-StronglyTypeCsFileForResx
$body = @'
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a Start-ResGen funciton from PowerShellGitHubDev.psm1.
// This code was generated by a Start-ResGen funciton from build.psm1.
// To add or remove a member, edit your .ResX file then rerun Start-ResGen.
//
// Changes to this file may cause incorrect behavior and will be lost if

View File

@ -1,8 +1,8 @@
#!/usr/bin/env bash
if hash powershell 2>/dev/null; then
echo 'Continuing with `powershell -c Start-PSBuild`'
powershell -c "Import-Module ./PowerShellGitHubDev.psm1; Start-PSBuild"
echo 'Continuing with `powershell -noprofile -c Start-PSBuild`'
powershell -noprofile -c "Import-Module ./build.psm1; Start-PSBuild"
else
echo 'No `powershell`, see docs/building/linux.md or osx.md to build PowerShell!'
fi

View File

@ -65,7 +65,7 @@ import our module, bootsrap the dependencies, and build!
In PowerShell:
```powershell
Import-Module ./PowerShellGitHubDev.psm1
Import-Module ./build.psm1
Start-PSBootstrap
```
@ -98,7 +98,7 @@ uninstall prior any prior versions.
Build using our module
======================
We maintain a [PowerShell module](../../PowerShellGitHubDev.psm1) with
We maintain a [PowerShell module](../../build.psm1) with
the function `Start-PSBuild` to build PowerShell. Since this is
PowerShell code, it requires self-hosting. If you have followed the
toolchain setup section above, you should have `powershell` installed.
@ -108,7 +108,7 @@ toolchain setup section above, you should have `powershell` installed.
> in Bash; see [Build manually][#Build manually] below.
```powershell
Import-Module ./PowerShellGitHubDev.psm1
Import-Module ./build.psm1
Start-PSBuild
```

View File

@ -29,7 +29,7 @@ build PowerShell. The `Start-PSBootstrap` function will automatically
install it and add it to your path:
```powershell
Import-Module ./PowerShellGitHubDev.psm1
Import-Module ./build.psm1
Start-PSBootstrap
```
@ -62,11 +62,11 @@ CLI can cause odd failures when running. Please check your version.
Build using our module
======================
We maintain a [PowerShell module](../../PowerShellGitHubDev.psm1) with
We maintain a [PowerShell module](../../build.psm1) with
the function `Start-PSBuild` to build PowerShell.
```powershell
Import-Module ./PowerShellGitHubDev.psm1
Import-Module ./build.psm1
Start-PSBuild
```

View File

@ -45,7 +45,7 @@ choco install cmake.portable
Build using our module
======================
Use `Start-PSBuild -FullCLR` from the `PowerShellGitHubDev.psm1`
Use `Start-PSBuild -FullCLR` from the `build.psm1`
module.
Because the `ConsoleHost` project (*not* the `Host` project) is a

View File

@ -15,7 +15,7 @@ Values are relative file paths in PowerShell/PowerShell GitHub project.
We used to have a submodule at this path.
If you replace this `src\monad` with path to the **admin** enlistment, you will get the mapping to source depot.
### PowerShellGitHubDev.psm1
### build.psm1
Our dev module contains a number of functions to work that can be used to work with this mapping file.

View File

@ -25,7 +25,7 @@ If you just updated the string value, that's all you need to do: no need to re-g
When you adding or removing string, `.cs` file need to be changed.
1. Run `Start-ResGen` function from `PowerShellGitHubDev.psm1`
1. Run `Start-ResGen` function from `build.psm1`
1. Make sure your code is building with newly generated resources (run `Start-PSBuild`).
1. Go to submodule (`cd src\windows-build`) and perform the [submodule commit dance](../git/committing.md).
Follow working with [submodule rules](../../.github/CONTRIBUTING.md#submodules)

View File

@ -1330,6 +1330,7 @@
"src/monad/monad/src/oneget/PowerShell.Module/Utility/HostApiExtensions.cs": "src/Microsoft.PackageManagement/PowerShell.Module/Utility/HostApiExtensions.cs",
"src/monad/monad/src/oneget/PowerShell.Module/Utility/ProgressTracker.cs": "src/Microsoft.PackageManagement/PowerShell.Module/Utility/ProgressTracker.cs",
"src/monad/monad/src/oneget/PowerShell.Module/Utility/ValidateListAttribute.cs": "src/Microsoft.PackageManagement/PowerShell.Module/Utility/ValidateListAttribute.cs",
"src/monad/monad/src/oneget/PowerShell.Module/Utility/WebProxy.cs": "src/Microsoft.PackageManagement/PowerShell.Module/Utility/WebProxy.cs",
"src/monad/monad/src/oneget/PowerShell.Module/Constants.cs": "src/Microsoft.PackageManagement/PowerShell.Module/Constants.cs",
"src/monad/monad/src/oneget/providers/inbox/archivers/Compression/Cab/CabEngine.cs": "src/Microsoft.PackageManagement/providers/inbox/archivers/Compression/Cab/CabEngine.cs",
"src/monad/monad/src/oneget/providers/inbox/archivers/Compression/Cab/CabException.cs": "src/Microsoft.PackageManagement/providers/inbox/archivers/Compression/Cab/CabException.cs",
@ -1463,6 +1464,7 @@
"src/monad/monad/src/oneget/providers/inbox/NugetLightProvider/Utility/FileUtility.cs": "src/Microsoft.PackageManagement/providers/inbox/NugetLightProvider/Utility/FileUtility.cs",
"src/monad/monad/src/oneget/providers/inbox/NugetLightProvider/Utility/PackageUtility.cs": "src/Microsoft.PackageManagement/providers/inbox/NugetLightProvider/Utility/PackageUtility.cs",
"src/monad/monad/src/oneget/providers/inbox/NugetLightProvider/Utility/PathUtility.cs": "src/Microsoft.PackageManagement/providers/inbox/NugetLightProvider/Utility/PathUtility.cs",
"src/monad/monad/src/oneget/providers/inbox/NugetLightProvider/Utility/ProgressTracker.cs": "src/Microsoft.PackageManagement/providers/inbox/NugetLightProvider/Utility/ProgressTracker.cs",
"src/monad/monad/src/oneget/providers/inbox/NugetLightProvider/Utility/XmlUtility.cs": "src/Microsoft.PackageManagement/providers/inbox/NugetLightProvider/Utility/XmlUtility.cs",
"src/monad/monad/src/oneget/providers/inbox/NugetLightProvider/Version/DependencyVersion.cs": "src/Microsoft.PackageManagement/providers/inbox/NugetLightProvider/Version/DependencyVersion.cs",
"src/monad/monad/src/oneget/providers/inbox/NugetLightProvider/Version/SemanticVersion.cs": "src/Microsoft.PackageManagement/providers/inbox/NugetLightProvider/Version/SemanticVersion.cs",

View File

@ -1,4 +1,4 @@
Describe 'PowerShellGithubDev.psm1 and powershell.exe' {
Describe 'build.psm1 and powershell.exe' {
Context '$env:DEVPATH assemblies loading' {
It 'has $env:DEVPATH set' {
$env:DEVPATH | Should Not Be $null
@ -29,4 +29,4 @@ Describe 'PowerShellGithubDev.psm1 and powershell.exe' {
Join-Path $env:DEVPATH Microsoft.PowerShell.Security.dll)
}
}
}
}