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/15 05:45:04 UTC

[1/2] lucenenet git commit: build\build.ps1: Attempting to fix "illegal characters in path" when running tests on .NET Core 1.0

Repository: lucenenet
Updated Branches:
  refs/heads/master 34ef2ce56 -> b781e1178


build\build.ps1: Attempting to fix "illegal characters in path" when running tests on .NET Core 1.0


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

Branch: refs/heads/master
Commit: 543ff4feaaa7d3874f9edbc57d76a40834636507
Parents: 34ef2ce
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Fri Sep 15 12:32:21 2017 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Fri Sep 15 12:44:26 2017 +0700

----------------------------------------------------------------------
 build/build.ps1 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/543ff4fe/build/build.ps1
----------------------------------------------------------------------
diff --git a/build/build.ps1 b/build/build.ps1
index b58b195..3cd5c4e 100644
--- a/build/build.ps1
+++ b/build/build.ps1
@@ -189,8 +189,8 @@ task Pack -depends Compile -description "This task creates the NuGet packages" {
 		$packages = Get-ChildItem -Path "$source_directory\**\*.csproj" -Recurse | ? { 
 			!$_.Directory.Name.Contains(".Test") -and 
 			!$_.Directory.Name.Contains(".Demo") -and 
-			!$_.Directory.Name.Contains(".Cli") -and 
-			!$_.Directory.Name.Contains("lucene-cli") -and 
+			!$_.Directory.FullName.Contains("\tools\") -and 
+			!$_.Directory.FullName.Contains("/tools/") -and 
 			!$_.Directory.Name.Contains(".Replicator.AspNetCore")
 		}
 		popd
@@ -231,7 +231,7 @@ task Test -depends InstallSDK1IfRequired, InstallSDK2IfRequired, Restore -descri
 			Ensure-Directory-Exists $testResultDirectory
 
 			if ($framework.StartsWith("netcore")) {
-				$testExpression = "dotnet.exe test '$testProject' --configuration $configuration --framework $framework --no-build"
+				$testExpression = "dotnet.exe test `"$testProject`" --configuration $configuration --framework `"$framework`" --no-build"
 				if ($framework -ne "netcoreapp1.0") {
 					$testExpression = "$testExpression --no-restore"
 					$testExpression = "$testExpression --results-directory $testResultDirectory\TestResult.xml"


[2/2] lucenenet git commit: build\build.ps1: Added TeamCity progress messages so the dashboard will indicate which task is running

Posted by ni...@apache.org.
build\build.ps1: Added TeamCity progress messages so the dashboard will indicate which task is running


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

Branch: refs/heads/master
Commit: b781e1178dc2fc0e057310695bca63d1dcb7e2f8
Parents: 543ff4f
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Fri Sep 15 12:43:39 2017 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Fri Sep 15 12:44:36 2017 +0700

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


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/b781e117/build/build.ps1
----------------------------------------------------------------------
diff --git a/build/build.ps1 b/build/build.ps1
index 3cd5c4e..ef239aa 100644
--- a/build/build.ps1
+++ b/build/build.ps1
@@ -55,11 +55,13 @@ $backedUpFiles = New-Object System.Collections.ArrayList
 task default -depends Pack
 
 task Clean -description "This task cleans up the build directory" {
+	Write-Host "##teamcity[progressMessage 'Cleaning']"
 	Remove-Item $release_directory -Force -Recurse -ErrorAction SilentlyContinue
 	Get-ChildItem $base_directory -Include *.bak -Recurse | foreach ($_) {Remove-Item $_.FullName}
 }
 
 task InstallSDK -description "This task makes sure the correct SDK version is installed to build" {
+	Write-Host "##teamcity[progressMessage 'Installing SDK']"
 	& where.exe dotnet.exe
 	$sdkVersion = "0.0.0.0"
 
@@ -84,12 +86,14 @@ task InstallSDK -description "This task makes sure the correct SDK version is in
 }
 
 task InstallSDK2IfRequired -description "This task installs the .NET Core 2.x SDK (required for testing under .NET Core 2.0 or .NET Framework)" {
+	Write-Host "##teamcity[progressMessage 'Installing SDK']"
 	if ($frameworks_to_test.Contains("netcoreapp2.") -or $frameworks_to_test.Contains("net45")) {
 		Invoke-Task InstallSDK
 	}
 }
 
 task InstallSDK1IfRequired -description "This task installs the .NET Core 1.x SDK (required for testing under .NET Core 1.0)" {
+	Write-Host "##teamcity[progressMessage 'Installing SDK']"
 	if ($frameworks_to_test.Contains("netcoreapp1.")) {
 		# Make sure framework for .NET Core 1.0.4 is available
 		if (((Test-Path "$sdkPath/1.0.4") -eq $false) -and ((Test-Path "$sdkPath/1.1.0") -eq $false)) {
@@ -128,12 +132,14 @@ task Init -depends InstallSDK -description "This task makes sure the build envir
 }
 
 task Restore -description "This task restores the dependencies" {
+	Write-Host "##teamcity[progressMessage 'Restoring']"
 	Exec { 
 		& dotnet.exe restore $solutionFile --no-dependencies /p:TestFrameworks=true
 	}
 }
 
 task Compile -depends Clean, Init, Restore -description "This task compiles the solution" {
+	Write-Host "##teamcity[progressMessage 'Compiling']"
 	try {
 		if ($prepareForBuild -eq $true) {
 			Prepare-For-Build
@@ -181,6 +187,7 @@ task Compile -depends Clean, Init, Restore -description "This task compiles the
 }
 
 task Pack -depends Compile -description "This task creates the NuGet packages" {
+	Write-Host "##teamcity[progressMessage 'Packing']"
 	#create the nuget package output directory
 	Ensure-Directory-Exists "$nuget_package_directory"
 
@@ -206,6 +213,7 @@ task Pack -depends Compile -description "This task creates the NuGet packages" {
 }
 
 task Test -depends InstallSDK1IfRequired, InstallSDK2IfRequired, Restore -description "This task runs the tests" {
+	Write-Host "##teamcity[progressMessage 'Testing']"
 	Write-Host "Running tests..." -ForegroundColor DarkCyan
 
 	pushd $base_directory