You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
@rem enter repo root
|
|
|
|
cd /d %~dp0\..\..\..
|
|
|
|
|
|
|
|
call kokoro\windows\prepare_build_win64.bat || goto :error
|
|
|
|
|
|
|
|
@rem Allow Bazel to create short paths.
|
|
|
|
fsutil 8dot3name set 0
|
|
|
|
|
|
|
|
@rem TODO(b/241475022) Use docker to guarantee better stability.
|
|
|
|
|
|
|
|
@rem Reinstall Bazel due to corupt installation in kokoro.
|
|
|
|
bazel version
|
|
|
|
choco install bazel -y -i
|
|
|
|
bazel version
|
|
|
|
|
|
|
|
@rem Make paths as short as possible to avoid long path issues.
|
|
|
|
set BAZEL_STARTUP=--output_user_root=C:/tmp --windows_enable_symlinks
|
|
|
|
set BAZEL_FLAGS=--enable_runfiles --keep_going --test_output=streamed --verbose_failures
|
|
|
|
|
|
|
|
@rem Build libraries first.
|
|
|
|
bazel %BAZEL_STARTUP% build //:protoc //:protobuf //:protobuf_lite %BAZEL_FLAGS% || goto :error
|
|
|
|
|
|
|
|
@rem Run C++ tests.
|
|
|
|
bazel %BAZEL_STARTUP% test //src/... %BAZEL_FLAGS% || goto :error
|
|
|
|
|
|
|
|
goto :EOF
|
|
|
|
|
|
|
|
:error
|
|
|
|
echo Failed!
|
|
|
|
exit /b 1
|