mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
add section markers to Buildkite
This commit is contained in:
parent
53276b3044
commit
ed607782de
3 changed files with 12 additions and 4 deletions
|
@ -4,8 +4,10 @@ set -e
|
|||
set -x
|
||||
|
||||
# check author has added themselves to CONTRIBUTORS
|
||||
echo "--- Checking CONTRIBUTORS"
|
||||
.buildkite/linux/check_contributors
|
||||
|
||||
echo "--- Building"
|
||||
BAZEL="bazel --output_user_root=/state/bazel --output_base=/state/bazel/anki"
|
||||
BUILDARGS="--config=ci --experimental_convenience_symlinks=ignore --disk_cache=/state/bazel/disk --repository_cache=/state/bazel/repo"
|
||||
|
||||
|
@ -13,7 +15,10 @@ BUILDARGS="--config=ci --experimental_convenience_symlinks=ignore --disk_cache=/
|
|||
test -e /state/node_modules && mv /state/node_modules ts/
|
||||
|
||||
$BAZEL build $BUILDARGS ...
|
||||
|
||||
echo "+++ Running tests"
|
||||
$BAZEL test $BUILDARGS ...
|
||||
|
||||
echo "--- Cleanup"
|
||||
# if tests succeed, back up node_modules folder
|
||||
mv ts/node_modules /state/
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
set -e
|
||||
set -x
|
||||
|
||||
echo "-- Building"
|
||||
BAZEL="bazel --output_user_root=~/bazel --output_base=~/bazel/anki"
|
||||
BUILDARGS="--config=ci --experimental_convenience_symlinks=ignore"
|
||||
|
||||
|
@ -10,7 +11,10 @@ BUILDARGS="--config=ci --experimental_convenience_symlinks=ignore"
|
|||
test -e ~/node_modules && mv ~/node_modules ts/
|
||||
|
||||
$BAZEL build $BUILDARGS ...
|
||||
|
||||
echo "+++ Running tests"
|
||||
$BAZEL test $BUILDARGS ...
|
||||
|
||||
echo "--- Cleanup"
|
||||
# if tests succeed, back up node_modules folder
|
||||
mv ts/node_modules ~/
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
echo --- Building
|
||||
set BAZEL=\bazel\bazel.exe --output_user_root=\bazel\ankici --output_base=\bazel\ankici\base
|
||||
set BUILDARGS=--config=ci
|
||||
|
||||
|
@ -5,12 +6,11 @@ if exist \bazel\node_modules (
|
|||
move \bazel\node_modules ts\node_modules
|
||||
)
|
||||
|
||||
echo Building...
|
||||
:: rollup may fail on the first build, so we build once without checking return code
|
||||
call %BAZEL% build %BUILDARGS% ... -k
|
||||
|
||||
:: now build/test
|
||||
echo Running tests...
|
||||
echo +++ Running tests
|
||||
call %BAZEL% test %BUILDARGS% ...
|
||||
IF %ERRORLEVEL% NEQ 0 exit /B 1
|
||||
|
||||
|
@ -36,6 +36,5 @@ IF %ERRORLEVEL% NEQ 0 exit /B 1
|
|||
@REM IF %ERRORLEVEL% NEQ 0 exit /B 1
|
||||
@REM echo Import succesful.
|
||||
|
||||
echo --- Cleanup
|
||||
move ts\node_modules \bazel\node_modules
|
||||
|
||||
echo All tests pass.
|
||||
|
|
Loading…
Reference in a new issue