update to use new nuget client in tests

pull/7568/head
Alexander Polcyn 8 years ago
parent a062a7f2c5
commit 161767771b
  1. 6
      src/csharp/.nuget/packages.config
  2. 5
      src/csharp/Grpc.Core.Tests/packages.config
  3. 5
      src/csharp/Grpc.Core.Tests/project.json
  4. 3
      src/csharp/Grpc.Examples.MathClient/packages.config
  5. 3
      src/csharp/Grpc.Examples.MathServer/packages.config
  6. 3
      src/csharp/Grpc.IntegrationTesting.QpsWorker/packages.config
  7. 3
      src/csharp/Grpc.IntegrationTesting.StressClient/packages.config
  8. 5
      templates/src/csharp/Grpc.Core.Tests/project.json.template
  9. 55
      tools/run_tests/pre_build_csharp.bat
  10. 51
      tools/run_tests/pre_build_csharp.sh

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="NUnit.ConsoleRunner" version="3.2.0" />
<package id="OpenCover" version="4.6.519" />
<package id="ReportGenerator" version="2.4.4.0" />
</packages>

@ -4,4 +4,7 @@
<package id="Newtonsoft.Json" version="7.0.1" targetFramework="net45" />
<package id="NUnit" version="3.2.0" targetFramework="net45" />
<package id="NUnitLite" version="3.2.0" targetFramework="net45" />
</packages>
<package id="NUnit.ConsoleRunner" version="3.2.0" />
<package id="OpenCover" version="4.6.519" />
<package id="ReportGenerator" version="2.4.4.0" />
</packages>

@ -54,7 +54,10 @@
},
"Newtonsoft.Json": "8.0.3",
"NUnit": "3.2.0",
"NUnitLite": "3.2.0-*"
"NUnitLite": "3.2.0-*",
"NUnit.ConsoleRunner": "3.2.0",
"OpenCover": "4.6.519",
"ReportGenerator": "2.4.4.0"
},
"frameworks": {
"net45": { },

@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
</packages>

@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
</packages>

@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
</packages>

@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
</packages>

@ -8,7 +8,10 @@
},
"Newtonsoft.Json": "8.0.3",
"NUnit": "3.2.0",
"NUnitLite": "3.2.0-*"
"NUnitLite": "3.2.0-*",
"NUnit.ConsoleRunner": "3.2.0",
"OpenCover": "4.6.519",
"ReportGenerator": "2.4.4.0"
},
"frameworks": {
"net45": { },

@ -38,8 +38,61 @@ cd /d %~dp0\..\..
set NUGET=C:\nuget\nuget.exe
if exist %NUGET% (
@rem Restore Grpc packages by packages since Nuget client 3.4.4 doesnt support restore
@rem by solution
@rem Moving into each directory to let the restores work with both nuget 3.4 and 2.8
%NUGET% restore vsprojects/grpc_csharp_ext.sln || goto :error
%NUGET% restore src/csharp/Grpc.sln || goto :error
cd src/csharp
cd Grpc.Auth || goto :error
%NUGET% restore -PackagesDirectory ../packages || goto :error
cd ..
cd Grpc.Core || goto :error
%NUGET% restore -PackagesDirectory ../packages || goto :error
cd ..
cd Grpc.Core.Tests || goto :error
%NUGET% restore -PackagesDirectory ../packages || goto :error
cd ..
cd Grpc.Examples.MathClient || goto :error
%NUGET% restore -PackagesDirectory ../packages || goto :error
cd ..
cd Grpc.Examples.MathServer || goto :error
%NUGET% restore -PackagesDirectory ../packages || goto :error
cd ..
cd Grpc.Examples || goto :error
%NUGET% restore -PackagesDirectory ../packages || goto :error
cd ..
cd Grpc.HealthCheck.Tests || goto :error
%NUGET% restore -PackagesDirectory ../packages || goto :error
cd ..
cd Grpc.HealthCheck || goto :error
%NUGET% restore -PackagesDirectory ../packages || goto :error
cd ..
cd Grpc.IntegrationTesting.Client || goto :error
%NUGET% restore -PackagesDirectory ../packages || goto :error
cd ..
cd Grpc.IntegrationTesting.QpsWorker || goto :error
%NUGET% restore -PackagesDirectory ../packages || goto :error
cd ..
cd Grpc.IntegrationTesting.StressClient || goto :error
%NUGET% restore -PackagesDirectory ../packages || goto :error
cd ..
cd Grpc.IntegrationTesting || goto :error
%NUGET% restore -PackagesDirectory ../packages || goto :error
cd /d %~dp0\..\.. || goto :error
)
endlocal

@ -37,5 +37,54 @@ root=`pwd`
if [ -x "$(command -v nuget)" ]
then
nuget restore Grpc.sln
# Restoring Nuget packages by packages rather than by solution because of
# inability to restore by solution with Nuget client 3.4.4
# Moving into each directory to let the restores work with nuget 3.4 and 2.8
cd Grpc.Auth
nuget restore -PackagesDirectory ../packages
cd ..
cd Grpc.Core.Tests
nuget restore -PackagesDirectory ../packages
cd ..
cd Grpc.Core
nuget restore -PackagesDirectory ../packages
cd ..
cd Grpc.Examples.MathClient
nuget restore -PackagesDirectory ../packages
cd ..
cd Grpc.Examples.MathServer
nuget restore -PackagesDirectory ../packages
cd ..
cd Grpc.Examples
nuget restore -PackagesDirectory ../packages
cd ..
cd Grpc.HealthCheck.Tests
nuget restore -PackagesDirectory ../packages
cd ..
cd Grpc.HealthCheck
nuget restore -PackagesDirectory ../packages
cd ..
cd Grpc.IntegrationTesting.Client
nuget restore -PackagesDirectory ../packages
cd ..
cd Grpc.IntegrationTesting.QpsWorker
nuget restore -PackagesDirectory ../packages
cd ..
cd Grpc.IntegrationTesting.StressClient
nuget restore -PackagesDirectory ../packages
cd ..
cd Grpc.IntegrationTesting
nuget restore -PackagesDirectory ../packages
cd ..
fi

Loading…
Cancel
Save