Skip to content

Commit

Permalink
[ML] Add a dev-tools/ci.bat script to automate the Windows portion of…
Browse files Browse the repository at this point in the history
… 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.
  • Loading branch information
droberts195 authored Apr 5, 2018
1 parent 2945e2b commit 4f54f68
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions dev-tools/ci.bat
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4f54f68

Please sign in to comment.