Skip to content

Commit

Permalink
Upgrade Cake Build Runner
Browse files Browse the repository at this point in the history
- Update Build script
- Upgrade Cake Runner
- Upgrade modules, addins and tools
  • Loading branch information
Nirmal4G committed Jul 22, 2021
1 parent 8d18fcb commit b741e35
Show file tree
Hide file tree
Showing 6 changed files with 150 additions and 95 deletions.
10 changes: 5 additions & 5 deletions azure-pipelines.yml
Expand Up @@ -45,12 +45,12 @@ jobs:
#- powershell: .\build\Install-WindowsSdkISO.ps1 19041
# displayName: Insider SDK

- powershell: .\build\build.ps1 -target=Build
- powershell: .\build\build.ps1 -Target Build
displayName: Build

### Unit Tests ###

- powershell: .\build\build.ps1 -target=Test
- powershell: .\build\build.ps1 -Target Test
displayName: Test

- task: PublishTestResults@2
Expand All @@ -62,7 +62,7 @@ jobs:

### UI Integration Tests ###

- powershell: .\build\build.ps1 -target=UITest
- powershell: .\build\build.ps1 -Target UITest
displayName: UI Integration Tests

- task: PublishPipelineArtifact@1
Expand All @@ -81,7 +81,7 @@ jobs:

### Package ###

- powershell: .\build\build.ps1 -target=Package
- powershell: .\build\build.ps1 -Target Package
displayName: Package

- task: PowerShell@2
Expand Down Expand Up @@ -123,7 +123,7 @@ jobs:
- script: nbgv cloud
displayName: Set Version

- powershell: .\build\build.ps1 -target=SmokeTest
- powershell: .\build\build.ps1 -Target SmokeTest
displayName: SmokeTest

- task: CopyFiles@2
Expand Down
2 changes: 1 addition & 1 deletion build/StyleXaml.bat
@@ -1,3 +1,3 @@
@ECHO OFF
PowerShell.exe -file "%~dp0build.ps1" -target=StyleXaml
PowerShell.exe -file "%~dp0build.ps1" -Target StyleXaml
PAUSE
2 changes: 1 addition & 1 deletion build/UpdateHeaders.bat
@@ -1,3 +1,3 @@
@ECHO OFF
PowerShell.exe -file "%~dp0build.ps1" -target=UpdateHeaders
PowerShell.exe -file "%~dp0build.ps1" -Target UpdateHeaders
PAUSE
16 changes: 8 additions & 8 deletions build/build.cake
@@ -1,10 +1,10 @@
#module nuget:?package=Cake.LongPath.Module&version=0.7.0
#module nuget:?package=Cake.LongPath.Module&version=1.0.1

#addin nuget:?package=Cake.FileHelpers&version=3.2.1
#addin nuget:?package=Cake.Powershell&version=0.4.8
#addin nuget:?package=Cake.GitVersioning&version=3.3.37
#addin nuget:?package=Cake.FileHelpers&version=4.0.1
#addin nuget:?package=Cake.Powershell&version=1.0.1
#addin nuget:?package=Cake.GitVersioning&version=3.4.220

#tool nuget:?package=MSTest.TestAdapter&version=2.1.0
#tool nuget:?package=MSTest.TestAdapter&version=2.2.5
#tool nuget:?package=vswhere&version=2.8.4

using System;
Expand Down Expand Up @@ -94,7 +94,7 @@ void VerifyHeaders(bool Replace)

if(!Replace && hasMissing)
{
throw new Exception("Please run UpdateHeaders.bat or '.\\build.ps1 -target=UpdateHeaders' and commit the changes.");
throw new Exception("Please run UpdateHeaders.bat or '.\\build.ps1 -Target UpdateHeaders' and commit the changes.");
}
}

Expand Down Expand Up @@ -259,7 +259,7 @@ Task("Test")
{
Configuration = "Release",
NoBuild = true,
Logger = "trx;LogFilePrefix=VsTestResults",
Loggers = new[] { "trx;LogFilePrefix=VsTestResults" },
Verbosity = DotNetCoreVerbosity.Normal,
ArgumentCustomization = arg => arg.Append($"-s {baseDir}/.runsettings"),
};
Expand Down Expand Up @@ -306,7 +306,7 @@ Task("MSTestUITest")
{
Configuration = "Release",
NoBuild = true,
Logger = "trx;LogFilePrefix=VsTestResults",
Loggers = new[] { "trx;LogFilePrefix=VsTestResults" },
Verbosity = DotNetCoreVerbosity.Normal
};
DotNetCoreTest(file.FullPath, testSettings);
Expand Down

0 comments on commit b741e35

Please sign in to comment.