46b80ca773
Recommend removing ts/node_modules folder before attempting to build after this update. This moves ts/node_modules into the root of the project to work around https://github.com/ankitects/anki/pull/1405#issuecomment-936213861 Also fixes the sass errors shown when running scripts/svelte-check
20 lines
431 B
Bash
Executable File
20 lines
431 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
echo "--- Building"
|
|
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 .
|
|
|
|
$BAZEL build $BUILDARGS ...
|
|
|
|
echo "+++ Running tests"
|
|
$BAZEL test $BUILDARGS ...
|
|
|
|
echo "--- Cleanup"
|
|
# if tests succeed, back up node_modules folder
|
|
mv node_modules ~/
|