generated from devynspencer/powershell-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.properties.ps1
69 lines (49 loc) · 1.76 KB
/
build.properties.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
Set-BuildEnvironment -Force
$ModuleVersion = (Import-PowerShellDataFile -Path $env:BHPSModuleManifest).ModuleVersion
$BuilderEnv = [ordered] @{
General = @{
# Root directory for the project
ProjectRoot = $env:BHProjectPath
# Root directory for the module
SrcRootDir = $env:BHPSModulePath
# The name of the module. This should match the basename of the PSD1 file
ModuleName = $env:BHProjectName
# Module version
ModuleVersion = $moduleVersion
# Module manifest path
ModuleManifestPath = $env:BHPSModuleManifest
}
Build = @{
# Output directory for module build
OutDir = [IO.Path]::Combine($env:BHProjectPath, 'temp', 'output')
# Directory to write build logs to
LogDir = [IO.Path]::Combine($env:BHProjectPath, 'temp', 'logs')
# Directory to save reports to
ReportDir = [IO.Path]::Combine($env:BHProjectPath, 'temp', 'reports')
}
Test = @{
ScriptAnalysis = @{
# Enable/disable use of PSScriptAnalyzer for static analysis
Enabled = $true
# Path to the PSScriptAnalyzer settings file.
SettingsPath = [IO.Path]::Combine($env:BHProjectPath, 'ScriptAnalyzerSettings.psd1')
}
}
Help = @{
}
Docs = @{
}
Publish = @{
LocalStagingRepo = @{
Name = 'LocalStaging'
SourcePath = $env:BUILDER_STAGING_REPOSITORY_PATH
}
OrgRepo = @{
Name = 'Org'
SourceUri = $env:BUILDER_ORG_REGISTRY_SOURCE_URI
PublishUri = $env:BUILDER_ORG_REGISTRY_PUBLISH_URI
SearchUri = $env:BUILDER_ORG_REGISTRY_SEARCH_URI
ApiKey = $env:BUILDER_ORG_REGISTRY_API_KEY
}
}
}