forked from AppMetrics/AppMetrics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.ps1
95 lines (73 loc) · 1.78 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
New-Item -ItemType Directory -Force -Path ./nuget
Remove-Item -Path ./nuget/*.*
$cd = Get-Location
# core
"######### AppMetrics #########"
set-location ./src/Core
& ./build.ps1 $args
Set-Location $cd
if ($LASTEXITCODE -ne 0)
{
exit $LASTEXITCODE
}
Copy-Item -path .\src\Core\artifacts\packages\*.nupkg -Destination .\nuget
# health
"######### Health #########"
set-location ./src/Health
& ./build.ps1 $args
Set-Location $cd
if ($LASTEXITCODE -ne 0)
{
exit $LASTEXITCODE
}
Copy-Item -path .\src\Health\artifacts\packages\*.nupkg -Destination .\nuget
# extensions
"######### Extensions #########"
set-location ./src/Extensions
& ./build.ps1 $args
Set-Location $cd
if ($LASTEXITCODE -ne 0)
{
exit $LASTEXITCODE
}
Copy-Item -path .\src\Extensions\artifacts\packages\*.nupkg -Destination .\nuget
# reporting
"######### Reporting #########"
set-location ./src/Reporting
& ./build.ps1 $args
Set-Location $cd
if ($LASTEXITCODE -ne 0)
{
exit $LASTEXITCODE
}
Copy-Item -path .\src\Reporting\artifacts\packages\*.nupkg -Destination .\nuget
# aspnetcore
"######### AspNetCore #########"
set-location ./src/AspNetCore
& ./build.ps1 $args
Set-Location $cd
if ($LASTEXITCODE -ne 0)
{
exit $LASTEXITCODE
}
Copy-Item -path .\src\AspNetCore\artifacts\packages\*.nupkg -Destination .\nuget
# aspnetcore health
"######### AspNetCoreHealth #########"
set-location ./src/AspNetCoreHealth
& ./build.ps1 $args
Set-Location $cd
if ($LASTEXITCODE -ne 0)
{
exit $LASTEXITCODE
}
Copy-Item -path .\src\AspNetCoreHealth\artifacts\packages\*.nupkg -Destination .\nuget
# aspnetcore health
"######### Azure #########"
set-location ./src/Azure
& ./build.ps1 $args
Set-Location $cd
if ($LASTEXITCODE -ne 0)
{
exit $LASTEXITCODE
}
Copy-Item -path .\src\Azure\artifacts\packages\*.nupkg -Destination .\nuget