tldraw/scripts/e2e-run-ci

14 lines
279 B
Text
Raw Normal View History

set -eux
export ENABLE_SSL=1
export ENABLE_NETWORK_CACHING=1
yarn workspace @tldraw/tldraw prebuild
SHELL=/bin/bash nohup yarn dev-webdriver &
PROCCESS_PID="$!"
mode="${1:-local}"
sleep 5
yarn workspace @tldraw/e2e "test:${mode}"
exit_code=$?
kill $PROCCESS_PID
exit $exit_code