anki/.buildkite/mac/entrypoint
2020-12-08 22:23:27 +10:00

17 lines
378 B
Bash
Executable File

#!/bin/bash
set -e
set -x
BAZEL="bazel --output_user_root=~/bazel --output_base=~/bazel/anki"
BUILDARGS="--config=ci --experimental_convenience_symlinks=ignore"
# move existing node_modules into tree
test -e ~/node_modules && mv ~/node_modules ts/
$BAZEL build $BUILDARGS ...
$BAZEL test $BUILDARGS ...
# if tests succeed, back up node_modules folder
mv ts/node_modules ~/