forked from abpframework/abp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-test-all.ps1
102 lines (92 loc) · 4.16 KB
/
build-test-all.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
96
97
98
99
100
101
102
# COMMON PATHS
$rootFolder = (Get-Item -Path "./" -Verbose).FullName
# List of solutions
$solutionsPaths = (
"framework",
"modules/users",
"modules/permission-management",
"modules/setting-management",
"modules/identity",
"modules/identityserver",
"modules/tenant-management",
"modules/account",
"modules/docs",
"modules/blogging",
"modules/audit-logging",
"modules/background-jobs"
)
# List of test projects
$testProjectPaths = (
"framework/test/Volo.Abp.AspNetCore.Authentication.OAuth.Tests",
"framework/test/Volo.Abp.AspNetCore.MultiTenancy.Tests",
"framework/test/Volo.Abp.AspNetCore.Mvc.Tests",
"framework/test/Volo.Abp.AspNetCore.Mvc.UI.Tests",
"framework/test/Volo.Abp.AspNetCore.Mvc.Versioning.Tests",
"framework/test/Volo.Abp.AspNetCore.Tests",
"framework/test/Volo.Abp.Auditing.Tests",
"framework/test/Volo.Abp.Authorization.Tests",
"framework/test/Volo.Abp.Autofac.Tests",
"framework/test/Volo.Abp.AutoMapper.Tests",
"framework/test/Volo.Abp.Caching.Tests",
"framework/test/Volo.Abp.Castle.Core.Tests",
"framework/test/Volo.Abp.Core.Tests",
"framework/test/Volo.Abp.Data.Tests",
"framework/test/Volo.Abp.Ddd.Tests",
"framework/test/Volo.Abp.EntityFrameworkCore.Tests",
"framework/test/Volo.Abp.EventBus.Distributed.Tests",
"framework/test/Volo.Abp.EventBus.Tests",
"framework/test/Volo.Abp.Http.Client.Tests",
"framework/test/Volo.Abp.Localization.Tests",
"framework/test/Volo.Abp.MemoryDb.Tests",
"framework/test/Volo.Abp.MongoDB.Tests",
"framework/test/Volo.Abp.MultiTenancy.Tests",
"framework/test/Volo.Abp.Serialization.Tests",
"framework/test/Volo.Abp.TestApp.Tests",
"framework/test/Volo.Abp.UI.Navigation.Tests",
"framework/test/Volo.Abp.Uow.Tests",
"framework/test/Volo.Abp.Validation.Tests",
"framework/test/Volo.Abp.VirtualFileSystem.Tests",
"modules/blogging/test/Volo.Blogging.Application.Tests",
"modules/blogging/test/Volo.Blogging.EntityFrameworkCore.Tests",
"modules/identity/test/Volo.Abp.Identity.Domain.Tests",
"modules/identity/test/Volo.Abp.Identity.EntityFrameworkCore.Tests",
"modules/identityserver/test/Volo.Abp.IdentityServer.EntityFrameworkCore.Tests",
"modules/identity/test/Volo.Abp.Identity.MongoDB.Tests",
"modules/identity/test/Volo.Abp.Identity.Application.Tests",
"modules/permission-management/test/Volo.Abp.PermissionManagement.Tests",
"modules/permission-management/test/Volo.Abp.PermissionManagement.MongoDB.Tests",
"modules/permission-management/test/Volo.Abp.PermissionManagement.EntityFrameworkCore.Tests",
"modules/setting-management/test/Volo.Abp.SettingManagement.EntityFrameworkCore.Tests",
"modules/setting-management/test/Volo.Abp.SettingManagement.MongoDB.Tests",
"modules/setting-management/test/Volo.Abp.SettingManagement.Tests",
"modules/tenant-management/test/Volo.Abp.TenantManagement.EntityFrameworkCore.Tests",
"modules/tenant-management/test/Volo.Abp.TenantManagement.MongoDB.Tests",
"modules/tenant-management/test/Volo.Abp.TenantManagement.Application.Tests",
"modules/audit-logging/test/Volo.Abp.AuditLogging.EntityFrameworkCore.Tests",
"modules/audit-logging/test/Volo.Abp.AuditLogging.MongoDB.Tests",
"modules/audit-logging/test/Volo.Abp.AuditLogging.Tests",
"modules/background-jobs/test/Volo.Abp.BackgroundJobs.EntityFrameworkCore.Tests",
"modules/background-jobs/test/Volo.Abp.BackgroundJobs.MongoDB.Tests",
"modules/background-jobs/test/Volo.Abp.BackgroundJobs.Domain.Tests"
)
# Build all solutions
foreach ($solutionsPath in $solutionsPaths) {
$solutionAbsPath = (Join-Path $rootFolder $solutionsPath)
Set-Location $solutionAbsPath
dotnet build
if (-Not $?) {
Write-Host ("Build failed for the solution: " + $solutionsPath)
exit $LASTEXITCODE
}
}
# Test all projects
foreach ($testProjectPath in $testProjectPaths) {
$projectAbsPath = (Join-Path $rootFolder $testProjectPath)
Set-Location $projectAbsPath
dotnet test
if (-Not $?) {
Write-Host ("Test failed for the project: " + $testProjectPath)
exit $LASTEXITCODE
}
}
Set-Location $rootFolder