Skip to content

Commit b77a294

Browse files
author
David Roberts
committed
[ML] Add a dev-tools/ci.bat script to automate the Windows portion of the CI (#31)
To facilitate migration from ML team CI to Infra CI we need to make the steps triggered by Jenkins as simple as possible. This change adds a ci script that can be used for Windows.
1 parent 466150f commit b77a294

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

dev-tools/ci.bat

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
@echo off
2+
rem
3+
rem Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
4+
rem or more contributor license agreements. Licensed under the Elastic License;
5+
rem you may not use this file except in compliance with the Elastic License.
6+
rem
7+
8+
rem The Windows part of ML C++ CI:
9+
rem
10+
rem 1. Build and unit test the Windows version of the C++
11+
rem 2. Upload the build to the artifacts directory on S3 that
12+
rem subsequent Java builds will download the C++ components from
13+
14+
setlocal enableextensions
15+
16+
rem Change directory to the top level of the repo
17+
cd %~dp0
18+
cd ..
19+
20+
rem Ensure 3rd party dependencies are installed
21+
powershell.exe -ExecutionPolicy RemoteSigned -File dev-tools\download_windows_deps.ps1 || exit /b %ERRORLEVEL%
22+
23+
rem Run the build and unit tests
24+
set ML_KEEP_GOING=1
25+
call .\gradlew.bat --info clean buildZip buildZipSymbols check || exit /b %ERRORLEVEL%
26+
27+
rem Upload the artifacts to S3
28+
call .\gradlew.bat --info -b upload.gradle upload || exit /b %ERRORLEVEL%
29+
30+
endlocal
31+

0 commit comments

Comments
 (0)