diff --git a/dev-tools/ci.bat b/dev-tools/ci.bat new file mode 100755 index 0000000000..f94c849c03 --- /dev/null +++ b/dev-tools/ci.bat @@ -0,0 +1,31 @@ +@echo off +rem +rem Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +rem or more contributor license agreements. Licensed under the Elastic License; +rem you may not use this file except in compliance with the Elastic License. +rem + +rem The Windows part of ML C++ CI: +rem +rem 1. Build and unit test the Windows version of the C++ +rem 2. Upload the build to the artifacts directory on S3 that +rem subsequent Java builds will download the C++ components from + +setlocal enableextensions + +rem Change directory to the top level of the repo +cd %~dp0 +cd .. + +rem Ensure 3rd party dependencies are installed +powershell.exe -ExecutionPolicy RemoteSigned -File dev-tools\download_windows_deps.ps1 || exit /b %ERRORLEVEL% + +rem Run the build and unit tests +set ML_KEEP_GOING=1 +call .\gradlew.bat --info clean buildZip buildZipSymbols check || exit /b %ERRORLEVEL% + +rem Upload the artifacts to S3 +call .\gradlew.bat --info -b upload.gradle upload || exit /b %ERRORLEVEL% + +endlocal +