Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
[submodule "src/Modules/Pester"]
path = src/Modules/Shared/Pester
url = https://github.com/PowerShell/psl-pester.git
branch = develop
ignore = dirty
[submodule "src/libpsl-native/test/googletest"]
path = src/libpsl-native/test/googletest
url = https://github.com/google/googletest.git
Expand Down
178 changes: 0 additions & 178 deletions .spelling
Original file line number Diff line number Diff line change
Expand Up @@ -1032,184 +1032,6 @@ psd1
psm1
#endregion

#region src/Modules/Shared/Pester/CHANGELOG.md Overrides
- src/Modules/Shared/Pester/CHANGELOG.md
_be
AfterAll
AfterEach
ArgumentList
Assert-MockCalled
BeExactly
BeforeAll
BeforeEach
BeGreaterThan
BeLessThan
BeNullOrEmpty
BeOfType
beta2
cleanup
CodeCoverage
DisableOldStyleAssertions
dynamicparam
eg
EnableExit
EnableLegacyAssertions
EnableLegacyExpectations
ErrorAction
ExcludeTagFilter
ExclusiveFilter
ExecutionContext
ExecutionPolicy
FunctionName
fynctions
GetDynamicParameters
Get-MockDynamicParameters
Get-TestDriveItem
GH-100
GH-102
GH-107
GH-109
GH-113
GH-114
GH-123
GH-125
GH-126
GH-129
GH-13
GH-130
GH-134
GH-135
GH-136
GH-137
GH-139
GH-143
GH-144
GH-147
GH-148
GH-149
GH-150
GH-152
GH-155
GH-156
GH-158
GH-163
GH-164
GH-165
GH-166
GH-167
GH-168
GH-171
GH-172
GH-174
GH-176
GH-183
GH-185
GH-186
GH-187
GH-188
GH-19
GH-190
GH-192
GH-195
GH-200
GH-203
GH-209
GH-215
GH-223
GH-232
GH-234
GH-249
GH-254
GH-26
GH-266
GH-267
GH-27
GH-272
GH-274
GH-276
GH-278
GH-281
GH-290
GH-295
GH-304
GH-306
GH-307
GH-322
GH-323
GH-324
GH-326
GH-327
GH-333
GH-341
GH-346
GH-35
GH-354
GH-358
GH-362
GH-368
GH-37
GH-38
GH-39
GH-40
GH-42
GH-46
GH-49
GH-50
GH-52
GH-58
GH-61
GH-68
GH-69
GH-70
GH-71
GH-84
GH-86
GH-9
GH-90
GH-92
GH-94
GH-95
GH-98
GH-99
InModuleScope
Invoke-Pester's
ISESteroids
LegacyNUnitXml
ModuleName
MyInvocation
nuget.exe
OutputFile
OutputFormat
OutputXml
ParameterFilter
PassThru
Passthu
pester.bat
Pester.bat
PesterException
PesterThrowFailureMessage
PSCommandPath
PSv3
should.not
ShouldArgs
StrictMode
TestName
Tests.ps1.
v2
v3
v3.0
Validate-Xml
Write-UsageForNewFixture
#endregion

#region src/Modules/Shared/Pester/README.md Overrides
- src/Modules/Shared/Pester/README.md
hoc
pester-bdd-for-the-system-administrator
powershell-bdd-testing-pester-screencast
v1.0.
#endregion

#region src/powershell/README.md Overrides
- src/powershell/README.md
powershell-unix
Expand Down
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ install:
script:
- pwsh -File tools/travis.ps1
# spellcheck
# Ignore publish folders because they have 3rd party files
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
mdspell '**/*.md' '!powershell/**/*.md' --ignore-numbers --ignore-acronyms --report;
mdspell '**/*.md' '!**/publish/**/*.md' --ignore-numbers --ignore-acronyms --report;
fi

after_failure:
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
## Unreleased

- Update the contribution guideline to note that updating the changelog is required. (#5586)
- Remove Pester as a module include with the PowerShell Packages.
In the future, you should be able to add it by running `Install-Module Pester`. (#5623, #5631)

## v6.0.0-rc - 2017-11-16

Expand Down
61 changes: 58 additions & 3 deletions build.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ function Start-PSBuild {
[switch]$TypeGen,
[switch]$Clean,
[switch]$PSModuleRestore,
[switch]$CI,

# this switch will re-build only System.Management.Automation.dll
# it's useful for development, to do a quick changes in the engine
Expand Down Expand Up @@ -590,7 +591,7 @@ Fix steps:
# - PowerShellGet, PackageManagement, Microsoft.PowerShell.Archive
if($PSModuleRestore)
{
Restore-PSModuleToBuild -PublishPath $publishPath
Restore-PSModuleToBuild -PublishPath $publishPath -CI:$CI.IsPresent
}
}

Expand All @@ -599,7 +600,9 @@ function Restore-PSModuleToBuild
param(
[Parameter(Mandatory)]
[string]
$PublishPath
$PublishPath,
[Switch]
$CI
)

$ProgressPreference = "SilentlyContinue"
Expand All @@ -613,8 +616,12 @@ function Restore-PSModuleToBuild
'PowerShellGet'
'Microsoft.PowerShell.Archive'
) -SourceLocation "https://www.powershellgallery.com/api/v2/"
}

if($CI.IsPresent)
{
Restore-GitModule -Destination $modulesDir -Uri 'https://github.com/PowerShell/psl-pester' -Name Pester -CommitSha 'aa243108e7da50a8cf82513b6dd649b653c70b0e'
}
}
function Compress-TestContent {
[CmdletBinding()]
param(
Expand Down Expand Up @@ -2320,6 +2327,54 @@ function Clear-PSRepo
}
}


# Install PowerShell modules from a git Repo such as PSL-Pester
function Restore-GitModule
{
[CmdletBinding()]
param(
[Parameter(Mandatory=$true)]
[ValidateNotNullOrEmpty()]
[string]$Name,

[Parameter(Mandatory=$true)]
[ValidateNotNullOrEmpty()]
[string]$Uri,

[Parameter(Mandatory=$true)]
[ValidateNotNullOrEmpty()]
[string]$Destination,

[Parameter(Mandatory=$true)]
[ValidateNotNullOrEmpty()]
[string]$CommitSha
)

log 'Restoring module from git repo:'
log ("Name='{0}', Destination='{1}', Uri='{2}', CommitSha='{3}'" -f $Name, $Destination, $Uri, $CommitSha)

$clonePath = Join-Path -Path $Destination -ChildPath $Name
if(Test-Path $clonePath)
{
remove-Item -Path $clonePath -recurse -force
}

$null = Start-NativeExecution {git clone --quiet $uri $clonePath}

Push-location $clonePath
try {
$null = Start-NativeExecution {git checkout --quiet -b desiredCommit $CommitSha} -SuppressOutput

$gitItems = Join-Path -Path $clonePath -ChildPath '.git*'
$ymlItems = Join-Path -Path $clonePath -ChildPath '*.yml'
Get-ChildItem -Path $gitItems, $ymlItems | Remove-Item -Recurse -Force
}
finally
{
pop-location
}
}

# Install PowerShell modules such as PackageManagement, PowerShellGet
function Restore-PSModule
{
Expand Down
1 change: 0 additions & 1 deletion src/Modules/Shared/Pester
Submodule Pester deleted from aa2431
2 changes: 1 addition & 1 deletion src/powershell-unix/powershell-unix.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<ItemGroup>
<Compile Include="..\powershell\Program.cs" Exclude="bin\**;obj\**;**\*.xproj;packages\**" />
<Content Include="..\Modules\Unix\**\*;..\Modules\Shared\**\*" Exclude="..\Modules\Shared\Pester\.git*;..\Modules\Shared\Pester\*.yml">
<Content Include="..\Modules\Unix\**\*;..\Modules\Shared\**\*" >
<Link>Modules\%(RecursiveDir)\%(FileName)%(Extension)</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
Expand Down
2 changes: 1 addition & 1 deletion src/powershell-win-core/powershell-win-core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<Link>PowerShellProperties.json</Link>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</Content>
<Content Include="..\Modules\Windows-Core\**\*;..\Modules\Windows-Core+Full\**\*;..\Modules\Shared\**\*" Exclude="..\Modules\Shared\Pester\.git*;..\Modules\Shared\Pester\*.yml">
<Content Include="..\Modules\Windows-Core\**\*;..\Modules\Windows-Core+Full\**\*;..\Modules\Shared\**\*">
<Link>Modules\%(RecursiveDir)\%(FileName)%(Extension)</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
Expand Down
4 changes: 2 additions & 2 deletions tools/appveyor.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,10 @@ function Invoke-AppVeyorBuild

if(Test-DailyBuild)
{
Start-PSBuild -Configuration 'CodeCoverage' -PSModuleRestore
Start-PSBuild -Configuration 'CodeCoverage' -PSModuleRestore -CI -ReleaseTag $releaseTag
}

Start-PSBuild -CrossGen -PSModuleRestore -Configuration 'Release'
Start-PSBuild -CrossGen -PSModuleRestore -Configuration 'Release' -CI -ReleaseTag $releaseTag
}

# Implements the AppVeyor 'install' step
Expand Down
4 changes: 2 additions & 2 deletions tools/travis.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ elseif($Stage -eq 'Build')
$ProgressPreference = 'SilentlyContinue'
try {
## We use CrossGen build to run tests only if it's the daily build.
Start-PSBuild -CrossGen -PSModuleRestore
Start-PSBuild -CrossGen -PSModuleRestore -CI -ReleaseTag $releaseTag
}
finally{
$ProgressPreference = $originalProgressPreference
Expand Down Expand Up @@ -263,7 +263,7 @@ elseif($Stage -eq 'Build')
if ($IsLinux)
{
# Create and package Raspbian .tgz
Start-PSBuild -Clean -Runtime linux-arm
Start-PSBuild -PSModuleRestore -Clean -Runtime linux-arm
Start-PSPackage @packageParams -Type tar-arm -SkipReleaseChecks
}
}
Expand Down