Ver código fonte

Ensure git tree has no dirty commits from AssemblyInfo

Oren Novotny 9 anos atrás
pai
commit
93d9f19f8e
3 arquivos alterados com 9 adições e 1 exclusões
  1. 3 0
      Ix.NET/Source/build-new.ps1
  2. 2 0
      Rx.NET/Source/build-new.ps1
  3. 4 1
      build.ps1

+ 3 - 0
Ix.NET/Source/build-new.ps1

@@ -72,3 +72,6 @@ Write-Host "Running tests" -Foreground Green
 $testDirectory = Join-Path $scriptPath "Tests"  
 dotnet test $testDirectory -c $configuration
 
+Write-Host "Reverting AssemblyInfo's" -Foreground Green
+gci $scriptPath -re -in AssemblyInfo.cs | %{ git checkout $_ } 
+

+ 2 - 0
Rx.NET/Source/build-new.ps1

@@ -83,3 +83,5 @@ Write-Host "Running tests" -Foreground Green
 $testDirectory = Join-Path $scriptPath "Tests.System.Reactive"
 dotnet test $testDirectory -c "$configuration"
 
+Write-Host "Reverting AssemblyInfo's" -Foreground Green
+gci $scriptPath -re -in AssemblyInfo.cs | %{ git checkout $_ } 

+ 4 - 1
build.ps1

@@ -24,4 +24,7 @@ Write-Host "Building Rx.NET" -ForegroundColor Green
 .\Rx.NET\Source\build-new
 
 Write-Host "Building Ix.NET" -ForegroundColor Green
-.\Ix.NET\Source\build-new
+.\Ix.NET\Source\build-new
+
+Write-Host "Reverting AssemblyInfo's" -Foreground Green
+gci -re -in AssemblyInfo.cs | %{ git checkout $_ }