diff --git a/scripts/run-headless-tests.sh b/scripts/run-headless-tests.sh new file mode 100755 index 000000000..d04b2ffd7 --- /dev/null +++ b/scripts/run-headless-tests.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +set -xeuo pipefail + +if [ `adb devices | wc -l` -lt "3" ] +then + echo "No devices are connected. Make sure emulator is booted with flipper sample app running" + exit 1 +fi + +yarn build-headless --mac +unzip -u dist/Flipper-headless.zip -d /tmp +(cd headless-tests && yarn test)