Skip to content

Commit

Permalink
Merge pull request grpc#7717 from nicolasnoble/update-build-packages
Browse files Browse the repository at this point in the history
Updating build package C# scripts.
  • Loading branch information
nicolasnoble authored Aug 12, 2016
2 parents 56f9785 + 6ee23ee commit 04132ae
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
8 changes: 2 additions & 6 deletions src/csharp/build_packages.bat
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@

@rem Current package versions
set VERSION=1.0.0-pre2
set PROTOBUF_VERSION=3.0.0-beta3

@rem Packages that depend on prerelease packages (like Google.Protobuf) need to have prerelease suffix as well.
set VERSION_WITH_BETA=%VERSION%-beta
set PROTOBUF_VERSION=3.0.0

@rem Adjust the location of nuget.exe
set NUGET=C:\nuget\nuget.exe
Expand All @@ -58,7 +55,6 @@ xcopy /Y /I ..\..\architecture=x64,language=protoc,platform=macos\artifacts\* pr

@rem Fetch all dependencies
%NUGET% restore ..\..\vsprojects\grpc_csharp_ext.sln || goto :error
%NUGET% restore Grpc.sln || goto :error

setlocal

Expand All @@ -73,7 +69,7 @@ endlocal

%NUGET% pack Grpc.Auth\Grpc.Auth.nuspec -Symbols -Version %VERSION% || goto :error
%NUGET% pack Grpc.Core\Grpc.Core.nuspec -Symbols -Version %VERSION% || goto :error
%NUGET% pack Grpc.HealthCheck\Grpc.HealthCheck.nuspec -Symbols -Version %VERSION_WITH_BETA% -Properties ProtobufVersion=%PROTOBUF_VERSION% || goto :error
%NUGET% pack Grpc.HealthCheck\Grpc.HealthCheck.nuspec -Symbols -Version %VERSION% -Properties ProtobufVersion=%PROTOBUF_VERSION% || goto :error
%NUGET% pack Grpc.nuspec -Version %VERSION% || goto :error
%NUGET% pack Grpc.Tools.nuspec -Version %VERSION% || goto :error

Expand Down
8 changes: 2 additions & 6 deletions templates/src/csharp/build_packages.bat.template
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@

@rem Current package versions
set VERSION=${settings.csharp_version}
set PROTOBUF_VERSION=3.0.0-beta3

@rem Packages that depend on prerelease packages (like Google.Protobuf) need to have prerelease suffix as well.
set VERSION_WITH_BETA=%VERSION%-beta
set PROTOBUF_VERSION=3.0.0

@rem Adjust the location of nuget.exe
set NUGET=C:\nuget\nuget.exe
Expand All @@ -60,7 +57,6 @@

@rem Fetch all dependencies
%%NUGET% restore ..\..\vsprojects\grpc_csharp_ext.sln || goto :error
%%NUGET% restore Grpc.sln || goto :error

setlocal

Expand All @@ -75,7 +71,7 @@

%%NUGET% pack Grpc.Auth\Grpc.Auth.nuspec -Symbols -Version %VERSION% || goto :error
%%NUGET% pack Grpc.Core\Grpc.Core.nuspec -Symbols -Version %VERSION% || goto :error
%%NUGET% pack Grpc.HealthCheck\Grpc.HealthCheck.nuspec -Symbols -Version %VERSION_WITH_BETA% -Properties ProtobufVersion=%PROTOBUF_VERSION% || goto :error
%%NUGET% pack Grpc.HealthCheck\Grpc.HealthCheck.nuspec -Symbols -Version %VERSION% -Properties ProtobufVersion=%PROTOBUF_VERSION% || goto :error
%%NUGET% pack Grpc.nuspec -Version %VERSION% || goto :error
%%NUGET% pack Grpc.Tools.nuspec -Version %VERSION% || goto :error

Expand Down
9 changes: 8 additions & 1 deletion tools/run_tests/package_targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,14 @@ def __init__(self, use_coreclr=False):
self.labels += ['windows']

def pre_build_jobspecs(self):
return []
if 'windows' in self.labels:
return [create_jobspec('prebuild_%s' % self.name,
['tools\\run_tests\\pre_build_csharp.bat'],
shell=True,
flake_retries=5,
timeout_retries=2)]
else:
return []

def build_jobspec(self):
if self.use_coreclr:
Expand Down

0 comments on commit 04132ae

Please sign in to comment.