forked from PHOENIXCONTACT/MORYX-ClientFramework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuild.ps1
48 lines (37 loc) · 741 Bytes
/
Build.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
param (
[switch]$SetAssemblyVersion,
[switch]$Build,
[switch]$UnitTests,
[switch]$CoverReport,
[switch]$GenerateDocs,
[switch]$Pack,
[switch]$Publish
)
# Load Toolkit
. ".build\BuildToolkit.ps1"
# Set build version to latest
$MsBuildVersion = "latest"
# Initialize Toolkit
Invoke-Initialize -Version (Get-Content "VERSION");
if ($SetAssemblyVersion) {
Set-AssemblyVersions;
}
if ($Build) {
Invoke-Build ".\ClientFramework.sln"
}
if ($UnitTests) {
Invoke-CoverTests -SearchFilter "*.Tests.csproj"
}
if ($CoverReport) {
Invoke-CodecovUpload
}
if ($GenerateDocs) {
Invoke-DocFx
}
if ($Pack) {
Invoke-PackAll -Symbols
}
if ($Publish) {
Invoke-Publish
}
Write-Host "Success!"