File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -60,23 +60,26 @@ if (!([string]::IsNullOrEmpty($mockSeverITFolder))) {
60
60
61
61
Push-Location $testPath
62
62
if ($language -eq " csharp" ) {
63
- dotnet build
63
+ Invoke-Call - ScriptBlock {
64
+ dotnet build
65
+ } - ErrorAction Stop
64
66
}
65
67
elseif ($language -eq " java" ) {
66
68
if (! ([string ]::IsNullOrEmpty($mockSeverITFolder ))) {
67
69
$itTestPath = Join-Path - Path $testPath - ChildPath $mockSeverITFolder
68
70
Push-Location $itTestPath
69
- # START: Specific Java provisioning and execution
71
+
70
72
$itTestPathSources = Join-Path - Path $testPath - ChildPath " src" - AdditionalChildPath " *"
71
73
$itTestPathDest = Join-Path - Path $itTestPath - ChildPath " src" - AdditionalChildPath " main" , " java"
72
74
if (Test-Path $itTestPathDest ) {
73
75
Remove-Item $itTestPathDest - Force - Recurse
74
76
}
75
77
Copy-Item - Path $itTestPathSources - Destination $itTestPathDest - Recurse
78
+
76
79
Invoke-Call - ScriptBlock {
77
80
mvn clean test -- batch- mode
78
81
} - ErrorAction Stop
79
- # END
82
+
80
83
Pop-Location
81
84
} else {
82
85
Invoke-Call - ScriptBlock {
You can’t perform that action at this time.
0 commit comments