anki/.buildkite/mac/entrypoint

20 lines
435 B
Plaintext
Raw Normal View History

2020-12-07 12:26:52 +01:00
#!/bin/bash
set -e
2020-12-16 02:59:07 +01:00
echo "-- Building"
2020-12-07 12:26:52 +01:00
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 ...
2020-12-16 02:59:07 +01:00
echo "+++ Running tests"
2020-12-07 12:26:52 +01:00
$BAZEL test $BUILDARGS ...
2020-12-16 02:59:07 +01:00
echo "--- Cleanup"
2020-12-07 12:26:52 +01:00
# if tests succeed, back up node_modules folder
mv ts/node_modules ~/