Skip to content

Add CI test run to libvlcsharp 4 #150

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
cake: add test task
  • Loading branch information
mfkl committed Jul 30, 2020
commit d99df987cfaf8d4ecac7760a60ccc080f3e0a2ae
12 changes: 12 additions & 0 deletions buildsystem/build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ var solutionName = "LibVLCSharp";
var solutionFile = IsRunningOnWindows() ? $"{solutionName}.sln" : $"{solutionName}.Mac.sln";
var solutionPath = $"../src/{solutionFile}";
var libvlcsharpCsproj = "../src/libvlcsharp/libvlcsharp.csproj";
var testCsproj = "../src/libvlcsharp.tests/libvlcsharp.tests.csproj";

var packagesDir = "../packages";
var isCiBuild = BuildSystem.IsRunningOnAzurePipelines || BuildSystem.IsRunningOnAzurePipelinesHosted;
Expand Down Expand Up @@ -75,6 +76,17 @@ Task("Build-only-libvlcsharp")
Build(libvlcsharpCsproj);
});

Task("Test")
.Does(() =>
{
var settings = new DotNetCoreTestSettings
{
Logger = "console;verbosity=detailed"
};

DotNetCoreTest(testCsproj, settings);
});

Task("CIDeploy")
.Does(() =>
{
Expand Down