grpc_build_artifacts.bat 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. @rem Copyright 2017, Google Inc.
  2. @rem All rights reserved.
  3. @rem
  4. @rem Redistribution and use in source and binary forms, with or without
  5. @rem modification, are permitted provided that the following conditions are
  6. @rem met:
  7. @rem
  8. @rem * Redistributions of source code must retain the above copyright
  9. @rem notice, this list of conditions and the following disclaimer.
  10. @rem * Redistributions in binary form must reproduce the above
  11. @rem copyright notice, this list of conditions and the following disclaimer
  12. @rem in the documentation and/or other materials provided with the
  13. @rem distribution.
  14. @rem * Neither the name of Google Inc. nor the names of its
  15. @rem contributors may be used to endorse or promote products derived from
  16. @rem this software without specific prior written permission.
  17. @rem
  18. @rem THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  19. @rem "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  20. @rem LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  21. @rem A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  22. @rem OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  23. @rem SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  24. @rem LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  25. @rem DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  26. @rem THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  27. @rem (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. @rem OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  29. @rem Move python installation from _32bit to _32bits where they are expected by python artifact builder
  30. @rem TODO(jtattermusch): get rid of this hack
  31. rename C:\Python27_32bit Python27_32bits
  32. rename C:\Python34_32bit Python34_32bits
  33. rename C:\Python35_32bit Python35_32bits
  34. rename C:\Python36_32bit Python36_32bits
  35. pacman -S --noconfirm mingw64/mingw-w64-x86_64-gcc mingw32/mingw-w64-i686-gcc
  36. @rem enter repo root
  37. cd /d %~dp0\..\..\..
  38. call tools/internal_ci/helper_scripts/prepare_build_windows.bat
  39. python tools/run_tests/task_runner.py -f artifact windows || goto :error
  40. goto :EOF
  41. :error
  42. exit /b %errorlevel%