noredink-ui/script/run-axe.sh

17 lines
340 B
Bash
Raw Normal View History

2019-07-24 00:55:31 +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 &
2020-11-04 22:29:03 +03:00
# Wait for the python server to launch since we're launching it async
sleep 3
2019-07-24 00:55:31 +03:00
SERVER_PID=$!
cleanup() {
kill "$SERVER_PID"
}
trap cleanup EXIT INT
node script/axe-puppeteer.js http://localhost:8000