anki/.buildkite/linux/entrypoint

20 lines
492 B
Plaintext
Raw Normal View History

2020-12-07 12:26:52 +01:00
#!/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/
2020-12-09 12:01:11 +01:00
# check author has added themselves to CONTRIBUTORS
.buildkite/linux/check_contributors