Revert "HACK: build\build.ps1: Removing --no-build switch when running .NET 
core tests because the test TeamCity build is not locating the 
dotnet-test-nunit-teamcity dependency"

This reverts commit 4b7ab658023498d949024e166a8eae01d6a03f01.


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

Branch: refs/heads/api-work
Commit: 873d94e8c81d44cc65c3037306a5abd4c4100dc0
Parents: 7ae4a65
Author: Shad Storhaug <[email protected]>
Authored: Sun Apr 23 16:14:21 2017 +0700
Committer: Shad Storhaug <[email protected]>
Committed: Sun Apr 23 16:14:21 2017 +0700

----------------------------------------------------------------------
 build/build.ps1 | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/873d94e8/build/build.ps1
----------------------------------------------------------------------
diff --git a/build/build.ps1 b/build/build.ps1
index 932a5b0..62594ad 100644
--- a/build/build.ps1
+++ b/build/build.ps1
@@ -125,9 +125,7 @@ task Test -description "This task runs the tests" {
                        Write-Host "Directory: $projectDirectory" 
-ForegroundColor Green
 
                        if ($framework.StartsWith("netcore")) {
-                               #$testExpression = "dotnet.exe test 
'$projectDirectory\project.json' --configuration $configuration --framework 
$framework --no-build"
-                               # HACK: taking off the no-build option because 
this command isn't finding the dependencies when running tests and dotnet 
restore doesn't help
-                               $testExpression = "dotnet.exe test 
'$projectDirectory\project.json' --configuration $configuration --framework 
$framework"
+                               $testExpression = "dotnet.exe test 
'$projectDirectory\project.json' --configuration $configuration --framework 
$framework --no-build"
                        } else {
                                $binaryRoot = 
"$projectDirectory\bin\$configuration\$framework"
 

Reply via email to