Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaTP committed Mar 16, 2023
1 parent 834d256 commit caee921
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions it/exec-cmd.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -60,23 +60,26 @@ if (!([string]::IsNullOrEmpty($mockSeverITFolder))) {

Push-Location $testPath
if ($language -eq "csharp") {
dotnet build
Invoke-Call -ScriptBlock {
dotnet build
} -ErrorAction Stop
}
elseif ($language -eq "java") {
if (!([string]::IsNullOrEmpty($mockSeverITFolder))) {
$itTestPath = Join-Path -Path $testPath -ChildPath $mockSeverITFolder
Push-Location $itTestPath
# START: Specific Java provisioning and execution

$itTestPathSources = Join-Path -Path $testPath -ChildPath "src" -AdditionalChildPath "*"
$itTestPathDest = Join-Path -Path $itTestPath -ChildPath "src" -AdditionalChildPath "main", "java"
if (Test-Path $itTestPathDest) {
Remove-Item $itTestPathDest -Force -Recurse
}
Copy-Item -Path $itTestPathSources -Destination $itTestPathDest -Recurse

Invoke-Call -ScriptBlock {
mvn clean test --batch-mode
} -ErrorAction Stop
# END

Pop-Location
} else {
Invoke-Call -ScriptBlock {
Expand Down

0 comments on commit caee921

Please sign in to comment.