noredink-ui/script/percy-tests.sh
2019-11-15 11:16:25 +00:00

13 lines
258 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
# start a web server in the background and tear it down when exiting
./script/serve.sh public &
SERVER_PID=$!
cleanup() {
kill "$SERVER_PID"
}
trap cleanup EXIT INT
node script/percy-tests.js http://localhost:8000