Merge commit '36bca61764984ff5395653cf8377ec5daa71b709' as 'libs/protobuf'
This commit is contained in:
33
libs/protobuf/kokoro/windows/cmake/build.bat
Normal file
33
libs/protobuf/kokoro/windows/cmake/build.bat
Normal file
@@ -0,0 +1,33 @@
|
||||
@rem enter repo root
|
||||
cd /d %~dp0\..\..\..
|
||||
|
||||
call kokoro\windows\prepare_build_win64.bat || goto :error
|
||||
|
||||
@rem TODO(b/241475022) Use docker to guarantee better stability.
|
||||
@rem TODO(b/241484899) Run conformance tests in windows.
|
||||
|
||||
md build
|
||||
md %KOKORO_ARTIFACTS_DIR%\logs
|
||||
|
||||
cd build
|
||||
|
||||
cmake .. ^
|
||||
-G "Visual Studio 15 2017" -A x64 ^
|
||||
-Dprotobuf_BUILD_EXAMPLES=ON ^
|
||||
-Dprotobuf_BUILD_CONFORMANCE=OFF ^
|
||||
-Dprotobuf_WITH_ZLIB=OFF ^
|
||||
-Dprotobuf_TEST_XML_OUTDIR=%KOKORO_ARTIFACTS_DIR%\logs\ || goto :error
|
||||
|
||||
cmake --build . || goto :error
|
||||
|
||||
ctest --verbose -C Debug || goto :error
|
||||
|
||||
goto :success
|
||||
|
||||
:error
|
||||
cd /d %~dp0\..\..\..
|
||||
echo Failed!
|
||||
exit /b 1
|
||||
|
||||
:success
|
||||
cd ..
|
||||
5
libs/protobuf/kokoro/windows/cmake/common.cfg
Normal file
5
libs/protobuf/kokoro/windows/cmake/common.cfg
Normal file
@@ -0,0 +1,5 @@
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/windows/cmake/build.bat"
|
||||
timeout_mins: 1440
|
||||
1
libs/protobuf/kokoro/windows/cmake/continuous.cfg
Normal file
1
libs/protobuf/kokoro/windows/cmake/continuous.cfg
Normal file
@@ -0,0 +1 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
1
libs/protobuf/kokoro/windows/cmake/presubmit.cfg
Normal file
1
libs/protobuf/kokoro/windows/cmake/presubmit.cfg
Normal file
@@ -0,0 +1 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
Reference in New Issue
Block a user