mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
22 lines
530 B
Batchfile
Executable file
22 lines
530 B
Batchfile
Executable file
set BAZEL=\bazel\bazel.exe --output_user_root=\bazel\ankici --output_base=\bazel\ankici\base
|
|
set BUILDARGS=--config=ci
|
|
|
|
echo +++ Building and testing
|
|
|
|
if exist \bazel\node_modules (
|
|
move \bazel\node_modules .\node_modules
|
|
)
|
|
|
|
call %BAZEL% test %BUILDARGS% ...
|
|
IF %ERRORLEVEL% NEQ 0 (
|
|
echo checking ts build
|
|
call %BAZEL% build //ts/... || (
|
|
echo ts build failed, cleaning up build products
|
|
call %BAZEL% run tools:cleanup_js
|
|
)
|
|
|
|
exit /B 1
|
|
)
|
|
|
|
echo --- Cleanup
|
|
move node_modules \bazel\node_modules
|