puppeteer.sh 175 B

1234567891011
  1. #!/bin/bash
  2. npm start &
  3. sleep 20s
  4. ./node_modules/.bin/jasmine test/functional/epic.js
  5. EXIT_CODE=$?
  6. FOREMAN_PID=$(pgrep foreman)
  7. kill -s SIGINT $FOREMAN_PID
  8. exit $EXIT_CODE