prepare_build_windows.bat 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 make sure msys binaries are preferred over cygwin binaries
  30. @rem set path to python 2.7
  31. set PATH=C:\tools\msys64\usr\bin;C:\Python27;%PATH%
  32. bash tools/internal_ci/helper_scripts/gen_report_index.sh
  33. @rem Update DNS settings to:
  34. @rem 1. allow resolving metadata.google.internal hostname
  35. @rem 2. make fetching default GCE credential by oauth2client work
  36. netsh interface ip set dns "Local Area Connection 8" static 169.254.169.254 primary
  37. netsh interface ip add dnsservers "Local Area Connection 8" 8.8.8.8 index=2
  38. netsh interface ip add dnsservers "Local Area Connection 8" 8.8.4.4 index=3
  39. @rem Needed for big_query_utils
  40. python -m pip install google-api-python-client
  41. git submodule update --init