-
-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathbuild.settings.ps1
More file actions
17 lines (17 loc) · 854 Bytes
/
build.settings.ps1
File metadata and controls
17 lines (17 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$projectRoot = if ($ENV:BHProjectPath) { $ENV:BHProjectPath } else { $PSScriptRoot }
$moduleName = $env:BHProjectName
$moduleVersion = (Import-PowerShellDataFile -Path $env:BHPSModuleManifest).ModuleVersion
$outDir = [IO.Path]::Combine($projectRoot, 'Output')
$moduleOutDir = "$outDir/$moduleName/$moduleVersion"
@{
ProjectRoot = $projectRoot
ProjectName = $env:BHProjectName
SUT = $env:BHModulePath
Tests = Get-ChildItem -Path ([IO.Path]::Combine($projectRoot, 'tests')) -Filter '*.tests.ps1'
OutputDir = $outDir
ModuleOutDir = $moduleOutDir
ManifestPath = $env:BHPSModuleManifest
Manifest = Import-PowerShellDataFile -Path $env:BHPSModuleManifest
PSVersion = $PSVersionTable.PSVersion.ToString()
PSGalleryApiKey = $env:PSGALLERY_API_KEY
}