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 <[email protected]>
Authored: Mon Sep 11 08:48:45 2017 +0700
Committer: Shad Storhaug <[email protected]>
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"

Reply via email to