@@ -3,8 +3,8 @@ echo "build: Build started"
3
3
Push-Location $PSScriptRoot
4
4
5
5
if (Test-Path .\artifacts) {
6
- echo " build: Cleaning .\artifacts"
7
- Remove-Item .\artifacts - Force - Recurse
6
+ echo " build: Cleaning .\artifacts"
7
+ Remove-Item .\artifacts - Force - Recurse
8
8
}
9
9
10
10
& dotnet restore -- no- cache
@@ -18,7 +18,7 @@ echo "build: Version suffix is $suffix"
18
18
foreach ($src in dir src/* ) {
19
19
Push-Location $src
20
20
21
- echo " build: Packaging project in $src "
21
+ echo " build: Packaging project in $src "
22
22
23
23
& dotnet pack - c Release - o ..\..\artifacts -- version- suffix= $suffix - p:ContinuousIntegrationBuild= true
24
24
if ($LASTEXITCODE -ne 0 ) { exit 1 }
@@ -29,7 +29,7 @@ foreach ($src in dir src/*) {
29
29
foreach ($test in dir test/* .PerformanceTests) {
30
30
Push-Location $test
31
31
32
- echo " build: Building performance test project in $test "
32
+ echo " build: Building performance test project in $test "
33
33
34
34
& dotnet build - c Release
35
35
if ($LASTEXITCODE -ne 0 ) { exit 2 }
@@ -40,11 +40,12 @@ foreach ($test in dir test/*.PerformanceTests) {
40
40
foreach ($test in dir test/* .Tests) {
41
41
Push-Location $test
42
42
43
- echo " build: Testing project in $test "
43
+ echo " build: Testing project in $test "
44
44
45
45
if ($PSVersionTable.Platform -eq " Unix" ) {
46
- & dotnet test - c Release -f netcoreapp2.0
46
+ & dotnet test - c Release -f netcoreapp2.1
47
47
& dotnet test - c Release -f netcoreapp3.1
48
+ & dotnet test - c Release -f net50
48
49
} else {
49
50
& dotnet test - c Release
50
51
}
@@ -57,7 +58,13 @@ foreach ($test in dir test/*.Tests) {
57
58
if ($PSVersionTable.Platform -eq " Unix" ) {
58
59
Push-Location sample/ Sample
59
60
60
- & dotnet run -f netcoreapp2.0 - c Release -- run- once
61
+ & dotnet run -f netcoreapp2.1 - c Release -- run- once
62
+ if ($LASTEXITCODE -ne 0 ) { exit 4 }
63
+
64
+ & dotnet run -f netcoreapp3.1 - c Release -- run- once
65
+ if ($LASTEXITCODE -ne 0 ) { exit 4 }
66
+
67
+ & dotnet run -f net50 - c Release -- run- once
61
68
if ($LASTEXITCODE -ne 0 ) { exit 4 }
62
69
63
70
Pop-Location
0 commit comments