You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2017/09/11 01:49:13 UTC

[6/6] lucenenet git commit: build/build.ps1: Updated script to exclude the Lucene.Net.Tests.Cli project when the framework is not .NET Core 2.0

build/build.ps1: Updated script to exclude the Lucene.Net.Tests.Cli project when the framework is not .NET Core 2.0


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/d7595af7
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/d7595af7
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/d7595af7

Branch: refs/heads/master
Commit: d7595af7a1e80f0c8c03e9e552aeb76799259889
Parents: 356cec5
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Mon Sep 11 08:48:45 2017 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Mon Sep 11 08:48:45 2017 +0700

----------------------------------------------------------------------
 build/build.ps1 | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/d7595af7/build/build.ps1
----------------------------------------------------------------------
diff --git a/build/build.ps1 b/build/build.ps1
index 6547b14..799eced 100644
--- a/build/build.ps1
+++ b/build/build.ps1
@@ -224,6 +224,11 @@ task Test -depends InstallSDK1IfRequired, InstallSDK2IfRequired, Restore -descri
 			$testResultDirectory = "$test_results_directory\$framework\$testName"
 			Ensure-Directory-Exists $testResultDirectory
 
+			# Special case - our CLI tool only supports .NET Core 2.0
+			if ($testProject.Contains("Tests.Cli") -and ($framework -ne "netcoreapp2.0")) {
+				continue
+			}
+
 			if ($framework.StartsWith("netcore")) {
 				$testExpression = "dotnet.exe test '$testProject' --configuration $configuration --framework $framework --no-restore --no-build"
 				$testExpression = "$testExpression --results-directory $testResultDirectory\TestResult.xml"