noredink-ui/script/percy-tests.sh

13 lines
254 B
Bash
Raw Normal View History

2019-11-15 14:16:25 +03:00
#!/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
2019-11-15 16:14:58 +03:00
npx percy exec -- node script/percy-tests.js