run_distrib_test.bat 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. @rem Copyright 2016 gRPC authors.
  2. @rem
  3. @rem Licensed under the Apache License, Version 2.0 (the "License");
  4. @rem you may not use this file except in compliance with the License.
  5. @rem You may obtain a copy of the License at
  6. @rem
  7. @rem http://www.apache.org/licenses/LICENSE-2.0
  8. @rem
  9. @rem Unless required by applicable law or agreed to in writing, software
  10. @rem distributed under the License is distributed on an "AS IS" BASIS,
  11. @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. @rem See the License for the specific language governing permissions and
  13. @rem limitations under the License.
  14. @rem enter this directory
  15. cd /d %~dp0
  16. @rem extract input artifacts
  17. powershell -Command "Add-Type -Assembly 'System.IO.Compression.FileSystem'; [System.IO.Compression.ZipFile]::ExtractToDirectory('../../../../input_artifacts/csharp_nugets_windows_dotnetcli.zip', 'TestNugetFeed');"
  18. update_version.sh auto
  19. set NUGET=nuget
  20. @rem TODO(jtattermusch): Get rid of this hack. See #8034
  21. @rem We can't do just "nuget restore" because restoring a .sln solution doesn't work
  22. @rem with nuget 3.X. On the other hand, we need nuget 2.12+ to be able to restore
  23. @rem some of the packages (e.g. System.Interactive.Async), but nuget 2.12
  24. @rem hasn't been officially released.
  25. @rem Please note that "Restore nuget packages" in VS2013 and VS2015 GUI works as usual.
  26. cd DistribTest || goto :error
  27. %NUGET% restore -PackagesDirectory ../packages || goto :error
  28. cd ..
  29. @call build_vs2015.bat DistribTest.sln %MSBUILD_EXTRA_ARGS% || goto :error
  30. %DISTRIBTEST_OUTPATH%\DistribTest.exe || goto :error
  31. goto :EOF
  32. :error
  33. echo Failed!
  34. exit /b %errorlevel%