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/10 15:01:39 UTC

[1/2] lucenenet git commit: build/build.ps1: Making Test depend on Restore to ensure it is run on .NET Core.

Repository: lucenenet
Updated Branches:
  refs/heads/master c02a98da4 -> af1f201ef


build/build.ps1: Making Test depend on Restore to ensure it is run on .NET Core.


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

Branch: refs/heads/master
Commit: af1f201efd62228d5eee0eb75591d04ade895983
Parents: 496b140
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Sun Sep 10 22:00:31 2017 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Sun Sep 10 22:01:05 2017 +0700

----------------------------------------------------------------------
 build/build.ps1 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/af1f201e/build/build.ps1
----------------------------------------------------------------------
diff --git a/build/build.ps1 b/build/build.ps1
index 4e9271a..d4dbbab 100644
--- a/build/build.ps1
+++ b/build/build.ps1
@@ -189,7 +189,7 @@ task Pack -depends Compile -description "This task creates the NuGet packages" {
 	}
 }
 
-task Test -depends InstallSDK -description "This task runs the tests" {
+task Test -depends InstallSDK, Restore -description "This task runs the tests" {
 	Write-Host "Running tests..." -ForegroundColor DarkCyan
 
 	pushd $base_directory


[2/2] lucenenet git commit: build/build.ps1: Failing the build isn't working, for now, removing that extra script

Posted by ni...@apache.org.
build/build.ps1: Failing the build isn't working, for now, removing that extra script


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

Branch: refs/heads/master
Commit: 496b14016270a7a6211cf7fc233bee6a782ccfd4
Parents: c02a98d
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Sun Sep 10 21:58:08 2017 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Sun Sep 10 22:01:05 2017 +0700

----------------------------------------------------------------------
 build/build.ps1 | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/496b1401/build/build.ps1
----------------------------------------------------------------------
diff --git a/build/build.ps1 b/build/build.ps1
index c303a01..4e9271a 100644
--- a/build/build.ps1
+++ b/build/build.ps1
@@ -72,20 +72,14 @@ task InstallSDK -description "This task makes sure the correct SDK version is in
 	if (!$sdkVersion.Equals("1.0.4")) {
 		Write-Host "Require SDK version 1.0.4, installing..." -ForegroundColor Red
 		#Install the correct version of the .NET SDK for this build
-	    $success = Invoke-Expression "$base_directory\build\dotnet-install.ps1 -Version 1.0.5;$?"
-		if (-not $success) {
-			throw "The .NET Core 1.0.4 SDK failed to install."
-		}
+		Invoke-Expression "$base_directory\build\dotnet-install.ps1 -Version 1.0.4"
 	}
 
 	# Make sure framework for .NET Core 2.0.0 is available
 	if (!$sdkVersion.Equals("2.0.0")) {
 		Write-Host "Require SDK version 2.0.0, installing..." -ForegroundColor Red
 		#Install the correct version of the .NET SDK for this build
-	    $success = Invoke-Expression "$base_directory\build\dotnet-install.ps1 -Version 2.0.0;$?"
-		if (-not $success) {
-			throw "The .NET Core 2.0.0 SDK failed to install."
-		}
+		Invoke-Expression "$base_directory\build\dotnet-install.ps1 -Version 2.0.0"
 	}
 
 	# Safety check - this should never happen