-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathInvoke-Build.ps1
More file actions
22 lines (19 loc) · 838 Bytes
/
Invoke-Build.ps1
File metadata and controls
22 lines (19 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$module = 'Onedrive-Client'
Push-Location $PSScriptroot
.\Clean-BuildEnv.ps1
Write-Host "Psscriptroot: $PSScriptroot"
if (-not (Test-Path "$PSScriptRoot\output\$module\" )) {
New-Item -ItemType Directory -Path "$PSScriptRoot\output\$module\"
}
Copy-Item "$PSScriptRoot\$module\*" "$PSScriptRoot\output\$module\" -Recurse -Force
Push-Location .\output\$module\
$manifest = @{
Path = "$PSScriptRoot\output\$module\$module.psd1"
RequiredAssemblies = @(($dllsToInclude | Get-Item -ea SilentlyContinue | Resolve-Path -Relative) -replace "^\.\\output\\$module\\" )
}
if ([string]::IsNullOrWhiteSpace($manifest.RequiredAssemblies)) {
$manifest.Remove('RequiredAssemblies')
}
Update-ModuleManifest @manifest
Import-Module "$PSScriptRoot\Output\$module\$module.psd1" -Verbose
#Invoke-Pester "$PSScriptRoot\Tests"