Skip to content

Commit 306bae4

Browse files
author
David Roberts
authored
[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 2580b4f commit 306bae4

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

dev-tools/ci.bat

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
@echo off
2+
rem
3+
rem ELASTICSEARCH CONFIDENTIAL
4+
rem
5+
rem Copyright (c) 2018 Elasticsearch BV. All Rights Reserved.
6+
rem
7+
rem Notice: this software, and all information contained
8+
rem therein, is the exclusive property of Elasticsearch BV
9+
rem and its licensors, if any, and is protected under applicable
10+
rem domestic and foreign law, and international treaties.
11+
rem
12+
rem Reproduction, republication or distribution without the
13+
rem express written consent of Elasticsearch BV is
14+
rem strictly prohibited.
15+
rem
16+
17+
rem The Windows part of ML C++ CI:
18+
rem
19+
rem 1. Build and unit test the Windows version of the C++
20+
rem 2. Upload the build to the artifacts directory on S3 that
21+
rem subsequent Java builds will download the C++ components from
22+
23+
setlocal enableextensions
24+
25+
rem Change directory to the top level of the repo
26+
cd %~dp0
27+
cd ..
28+
29+
rem Ensure 3rd party dependencies are installed
30+
powershell.exe -ExecutionPolicy RemoteSigned -File dev-tools\download_windows_deps.ps1 || exit /b %ERRORLEVEL%
31+
32+
rem Run the build and unit tests
33+
set ML_KEEP_GOING=1
34+
call .\gradlew.bat --info clean buildZip buildZipSymbols check || exit /b %ERRORLEVEL%
35+
36+
rem Upload the artifacts to S3
37+
call .\gradlew.bat --info -b upload.gradle upload || exit /b %ERRORLEVEL%
38+
39+
endlocal
40+

0 commit comments

Comments
 (0)