Skip to content

Commit

Permalink
Fix a CLI defect.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjstone committed Jul 26, 2020
1 parent 0ed0230 commit 1f39c1b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cicd/modules/BuildAndDeployment.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Function Build
$BuildVersionWithoutMetadata = GetBuildVersion;
ComposeStart "Building $FilePathForSolutionFile using $SolutionConfiguration configuration.";
ComposeNormal "Build version: $BuildVersionWithoutMetadata";
ExecuteProcess -Path "$CommandNameForDotNetCli" -Arguments "build $FilePathForSolutionFile --configuration $SolutionConfiguration --nologo --no-restore --verbosity minimal /p:BuildVersion=$BuildVersionWithoutMetadata";
ExecuteProcess -Path "$CommandNameForDotNetCli" -Arguments "build $FilePathForSolutionFile --configuration $SolutionConfiguration --no-restore --verbosity minimal /p:BuildVersion=$BuildVersionWithoutMetadata";
$BuildArtifactsDirectoryPath = Join-Path -Path "$DirectoryPathForArtifacts" -ChildPath "$SolutionConfiguration";

If (-not (Test-Path "$BuildArtifactsDirectoryPath"))
Expand Down Expand Up @@ -219,7 +219,7 @@ Function Clean
)

ComposeStart "Cleaning $FilePathForSolutionFile using $SolutionConfiguration configuration.";
ExecuteProcess -Path "$CommandNameForDotNetCli" -Arguments "clean $FilePathForSolutionFile --nologo --configuration $SolutionConfiguration --verbosity minimal";
ExecuteProcess -Path "$CommandNameForDotNetCli" -Arguments "clean $FilePathForSolutionFile --configuration $SolutionConfiguration --verbosity minimal";
ComposeStart "Destroying build artifacts.";

Get-ChildItem -Path "$DirectoryPathForSource" -Directory | ForEach-Object `
Expand Down Expand Up @@ -578,7 +578,7 @@ Function StartExampleWebApplication
ComposeStart "Starting the example web application using $SolutionConfiguration configuration.";
$ProjectFilePath = Join-Path -Path "$DirectoryPathForExample" -ChildPath "$ExampleWebApplicationNamespace\$ExampleWebApplicationNamespace.csproj";
ComposeNormal "Using project path: $ProjectFilePath";
Start-Process -ArgumentList "run --nologo --project ""$ProjectFilePath"" --configuration $SolutionConfiguration" -FilePath "dotnet" -WindowStyle Minimized;
Start-Process -ArgumentList "run --project ""$ProjectFilePath"" --configuration $SolutionConfiguration" -FilePath "dotnet" -WindowStyle Minimized;
ComposeFinish "Finished starting the application.";
}

Expand Down Expand Up @@ -627,7 +627,7 @@ Function Test
{
$TestDirectoryPath = $_.FullName;
ComposeStart "Running tests for $TestDirectoryPath using $SolutionConfiguration configuration.";
OpenCover.Console.exe -excludebyattribute:*.Debugger* -log:Error -mergeoutput -oldstyle -output:"$FilePathForCoverageReport" -register:user -skipautoprops -target:"dotnet.exe" -targetargs:"test $TestDirectoryPath --configuration $SolutionConfiguration --no-build --nologo --no-restore --verbosity minimal";
OpenCover.Console.exe -excludebyattribute:*.Debugger* -log:Error -mergeoutput -oldstyle -output:"$FilePathForCoverageReport" -register:user -skipautoprops -target:"dotnet.exe" -targetargs:"test $TestDirectoryPath --configuration $SolutionConfiguration --no-build --no-restore --verbosity minimal";

If ($LASTEXITCODE -ne 0)
{
Expand Down

0 comments on commit 1f39c1b

Please sign in to comment.