anki/.buildkite/linux/entrypoint
2020-12-10 08:49:37 +10:00

20 lines
560 B
Bash
Executable File

#!/bin/bash
set -e
set -x
# check author has added themselves to CONTRIBUTORS
.buildkite/linux/check_contributors
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"
# 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/