Skip to content

Commit

Permalink
Hide some build warnings, upload test results to appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
Roemer committed Aug 17, 2017
1 parent 56306e1 commit 8eaac72
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 81 deletions.
81 changes: 2 additions & 79 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
# Logs
BuildLog.txt

# User-specific files
*.suo
Expand Down Expand Up @@ -83,62 +83,11 @@ ipch/
*.vspx
*.sap

# TFS 2012 Local Workspace
$tf/

# Guidance Automation Toolkit
*.gpState

# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user

# JustCode is a .NET coding add-in
.JustCode

# TeamCity is a build add-in
_TeamCity*

# DotCover is a Code Coverage Tool
*.dotCover

# NCrunch
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*

# MightyMoose
*.mm.*
AutoTest.Net/

# Web workbench (sass)
.sass-cache/

# Installshield output folder
[Ee]xpress/

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish/

# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# TODO: Comment the next line if you want to checkin your web deploy settings
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj

# NuGet Packages
*.nupkg
# The packages folder can be ignored because of Package Restore
Expand All @@ -152,17 +101,6 @@ publish/
*.nuget.targets
tools/

# Microsoft Azure Build Output
csx/
*.build.csdef

# Microsoft Azure Emulator
ecf/
rcf/

# Microsoft Azure ApplicationInsights config file
ApplicationInsights.config

# Windows Store app package directory
AppPackages/
BundleArtifacts/
Expand All @@ -183,18 +121,3 @@ ClientBin/
*.publishsettings
node_modules/
orleans.codegen.cs

# SQL Server files
*.mdf
*.ldf

# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings

# Microsoft Fakes
FakesAssemblies/

# Paket dependency manager
.paket/paket.exe
17 changes: 15 additions & 2 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,19 @@ Task("Build")
.IsDependentOn("Restore-NuGet-Packages")
.Does(() =>
{
MSBuild(slnFile, new MSBuildSettings {
var buildSettings = new MSBuildSettings {
Verbosity = Verbosity.Minimal,
ToolVersion = MSBuildToolVersion.VS2017,
Configuration = configuration,
PlatformTarget = PlatformTarget.MSIL,
}.AddFileLogger(new MSBuildFileLogger {
LogFile = "./BuildLog.txt",
MSBuildFileLoggerOutput = MSBuildFileLoggerOutput.All
}));
});
// Hide informational warnings for now
buildSettings.Properties.Add("WarningLevel", new[] { "3" });

MSBuild(slnFile, buildSettings);
});

Task("Run-Unit-Tests")
Expand All @@ -44,6 +48,9 @@ Task("Run-Unit-Tests")
NUnit3(@"src\FlaUI.Core.UnitTests\bin\FlaUI.Core.UnitTests.dll", new NUnit3Settings {
Results = "UnitTestResult.xml"
});
if (AppVeyor.IsRunningOnAppVeyor) {
AppVeyor.UploadTestResults("UnitTestResult.xml", AppVeyorTestResultsType.NUnit3);
}
});

Task("Run-UI-Tests")
Expand All @@ -54,11 +61,17 @@ Task("Run-UI-Tests")
Results = "UIA2TestResult.xml",
ArgumentCustomization = args => args.Append("--params=uia=2")
});
if (AppVeyor.IsRunningOnAppVeyor) {
AppVeyor.UploadTestResults("UIA2TestResult.xml", AppVeyorTestResultsType.NUnit3);
}

NUnit3(@"src\FlaUI.Core.UITests\bin\FlaUI.Core.UITests.dll", new NUnit3Settings {
Results = "UIA3TestResult.xml",
ArgumentCustomization = args => args.Append("--params=uia=3")
});
if (AppVeyor.IsRunningOnAppVeyor) {
AppVeyor.UploadTestResults("UIA3TestResult.xml", AppVeyorTestResultsType.NUnit3);
}
});

Task("Run-Tests")
Expand Down

0 comments on commit 8eaac72

Please sign in to comment.