-
-
Notifications
You must be signed in to change notification settings - Fork 42
/
go.ps1
47 lines (44 loc) · 1.4 KB
/
go.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
#THIS SCRIPT RUNS THE AzDevOps CI/CD pipeline, consider the QuickBuild.ps1 instead.
param(
[string]$packageSources = $env:DxFeed, #"C:\Program Files (x86)\DevExpress 18.2\Components\System\Components\packages",
[string]$msbuild = $null,
[string]$nugetApiKey = $null,
[string]$dxVersion = "18.2.11",
[bool]$build = $true,
[bool]$cleanBin = $true,
[string]$branch = "lab",
[switch]$InstallModules,
[string[]]$taskList = @("Build"),
[string]$XpandPwshVersion = "1.221.0.20",
[switch]$CustomVersion,
[switch]$OnlyXpwsh
)
$ErrorActionPreference = "Stop"
$m=@([PSCustomObject]@{
Name = "XpandPwsh"
Version = $XpandPwshVersion
})
if (!$OnlyXpwsh){
$m+=[PSCustomObject]@{
Name = "psake"
Version = "4.9.0"
}
}
$m| ForEach-Object {
& "$PSScriptRoot\build\Install-Module.ps1" $_
}
"XpandPwshVersion=$((Get-Module XpandPwsh -ListAvailable).Version)"
if ($InstallModules) {
return
}
Invoke-XPsake "$PSScriptRoot\build\BuildDevExpress.XAF.ps1" -properties @{
"cleanBin" = $cleanBin;
"msbuild" = $msbuild;
"nugetApiKey" = $nugetApiKey;
"packageSources" = $packageSources;
"build" = $build;
"dxVersion" = $dxVersion;
"branch" = $branch;
"CustomVersion" = $CustomVersion;
"Root" = $PSScriptRoot;
} -taskList $taskList