build_and_run_unit_tests.cmd 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. @ECHO OFF
  2. REM
  3. REM Copyright (c) Contributors to the Open 3D Engine Project.
  4. REM For complete copyright and license terms please see the LICENSE at the root of this distribution.
  5. REM
  6. REM SPDX-License-Identifier: Apache-2.0 OR MIT
  7. REM
  8. REM
  9. SETLOCAL EnableDelayedExpansion
  10. CALL %~dp0gradle_windows.cmd
  11. IF NOT %ERRORLEVEL%==0 GOTO :error
  12. IF NOT EXIST "%LY_3RDPARTY_PATH%" (
  13. ECHO [ci_build] LY_3RDPARTY_PATH is invalid or not set
  14. GOTO :error
  15. )
  16. IF NOT EXIST "%LY_ANDROID_SDK%" (
  17. ECHO [ci_build] FAIL: LY_ANDROID_SDK=!LY_ANDROID_SDK!
  18. GOTO :error
  19. )
  20. SET ANDROID_SDK_ROOT=%LY_ANDROID_SDK%
  21. ECHO "ANDROID_SDK_ROOT=!ANDROID_SDK_ROOT!"
  22. SET PYTHON=python\python.cmd
  23. ECHO [ci_build] %PYTHON% scripts\build\Platform\Android\run_test_on_android_simulator.py --android-sdk-path %LY_ANDROID_SDK% --build-path %OUTPUT_DIRECTORY% --build-config %CONFIGURATION%
  24. CALL %PYTHON% scripts\build\Platform\Android\run_test_on_android_simulator.py --android-sdk-path %LY_ANDROID_SDK% --build-path %OUTPUT_DIRECTORY% --build-config %CONFIGURATION%
  25. IF NOT %ERRORLEVEL%==0 GOTO :popd_error
  26. EXIT /b 0
  27. :popd_error
  28. POPD
  29. :error
  30. ECHO ERROR
  31. EXIT /b 1