mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
tweak mac CI state folder
This commit is contained in:
parent
afff4fc437
commit
b714974464
1 changed files with 5 additions and 3 deletions
|
@ -2,16 +2,18 @@
|
|||
|
||||
set -e
|
||||
|
||||
BAZEL="bazel --output_user_root=~/bazel --output_base=~/bazel/anki"
|
||||
STATE=$(pwd)/../state/anki-ci
|
||||
mkdir -p $STATE
|
||||
BAZEL="bazel --output_user_root=$STATE/bazel --output_base=$STATE/bazel/anki"
|
||||
BUILDARGS="--config=ci --experimental_convenience_symlinks=ignore"
|
||||
|
||||
echo "+++ Building and testing"
|
||||
|
||||
# move existing node_modules into tree
|
||||
test -e ~/node_modules && mv ~/node_modules .
|
||||
test -e $STATE/node_modules && mv $STATE/node_modules .
|
||||
|
||||
$BAZEL test $BUILDARGS ...
|
||||
|
||||
echo "--- Cleanup"
|
||||
# if tests succeed, back up node_modules folder
|
||||
mv node_modules ~/
|
||||
mv node_modules $STATE/
|
||||
|
|
Loading…
Reference in a new issue