File tree 2 files changed +38
-0
lines changed
2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,32 @@ stages:
30
30
steps :
31
31
- template : windows-build.yml
32
32
33
+ - stage : Test
34
+ dependsOn : Build
35
+ condition : succeeded('Build')
36
+ variables :
37
+ DOTNET_SKIP_FIRST_TIME_EXPERIENCE : true
38
+ DOTNET_CLI_TELEMETRY_OPTOUT : true
39
+
40
+ jobs :
41
+ - job : test
42
+ pool :
43
+ vmImage : ' windows-latest'
44
+ steps :
45
+ - template : base-template.yml
46
+ - task : UseDotNet@2
47
+ displayName : ' Use .NET Core SDK6'
48
+ inputs :
49
+ packageType : sdk
50
+ version : 6.x
51
+ - task : DotNetCoreCLI@2
52
+ displayName : ' Test'
53
+ inputs :
54
+ command : custom
55
+ custom : ' cake'
56
+ arguments : --target Test
57
+ workingDirectory : buildsystem
58
+
33
59
- stage : Deploy
34
60
dependsOn : Build
35
61
condition : and(succeeded('Build'), not(eq(variables['build.reason'], 'PullRequest')))
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ var solutionName = "LibVLCSharp";
10
10
var solutionFile = IsRunningOnWindows ( ) ? $ "{ solutionName } .sln" : $ "{ solutionName } .Mac.sln";
11
11
var solutionPath = $ "../src/{ solutionFile } ";
12
12
var libvlcsharpCsproj = "../src/libvlcsharp/libvlcsharp.csproj" ;
13
+ var testCsproj = "../src/LibVLCSharp.Tests/LibVLCSharp.Tests.csproj" ;
13
14
14
15
var packagesDir = "../packages" ;
15
16
var isCiBuild = BuildSystem . AzurePipelines . IsRunningOnAzurePipelines ;
@@ -76,6 +77,17 @@ Task("Build-only-libvlcsharp")
76
77
Build ( libvlcsharpCsproj ) ;
77
78
} ) ;
78
79
80
+ Task ( "Test" )
81
+ . Does ( ( ) =>
82
+ {
83
+ var settings = new DotNetTestSettings
84
+ {
85
+ Loggers = new [ ] { "console;verbosity=detailed" }
86
+ } ;
87
+
88
+ DotNetTest ( testCsproj , settings ) ;
89
+ } ) ;
90
+
79
91
Task ( "CIDeploy" )
80
92
. Does ( ( ) =>
81
93
{
You can’t perform that action at this time.
0 commit comments