mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
19 lines
492 B
Bash
Executable file
19 lines
492 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
set -x
|
|
|
|
BAZEL="bazel --output_user_root=/state/bazel --output_base=/state/bazel/anki"
|
|
BUILDARGS="--config=ci --experimental_convenience_symlinks=ignore"
|
|
|
|
# move existing node_modules into tree
|
|
test -e /state/node_modules && mv /state/node_modules ts/
|
|
|
|
$BAZEL build $BUILDARGS ...
|
|
$BAZEL test $BUILDARGS ...
|
|
|
|
# if tests succeed, back up node_modules folder
|
|
mv ts/node_modules /state/
|
|
|
|
# check author has added themselves to CONTRIBUTORS
|
|
.buildkite/linux/check_contributors
|