forked from pester/Pester
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildPSGalleryPackage.ps1
26 lines (23 loc) · 981 Bytes
/
buildPSGalleryPackage.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$VerbosePreference = 'Continue'
$ErrorActionPreference = 'Stop'
$baseDir = $PSScriptRoot
try {
$buildDir = "$baseDir\build\psgallery\Pester"
$null = New-Item -Path $buildDir -ItemType Directory -Verbose
Write-Verbose "Copying release files to build folder '$buildDir'"
Copy-Item $baseDir\Pester.ps?1 $buildDir\
Copy-Item $baseDir\LICENSE $buildDir\
Copy-Item $baseDir\nunit_schema_2.5.xsd $buildDir\
Copy-Item $baseDir\bin $buildDir\ -Recurse
Copy-Item $baseDir\Functions $buildDir\ -Recurse
Copy-Item $baseDir\Dependencies $buildDir\ -Recurse
Copy-Item $baseDir\Snippets $buildDir\ -Recurse
Copy-Item $baseDir\en-US $buildDir\ -Recurse
Copy-Item $baseDir\lib $buildDir\ -Recurse
Write-Verbose 'Copy complete. Contents:'
Get-ChildItem $buildDir -Recurse | Out-Host
}
catch {
Write-Error -ErrorRecord $_
exit 1
}