full-test.sh 267 B

123456789101112131415161718
  1. #! /usr/bin/env bash
  2. echo ">> Starting server..."
  3. grunt >> /dev/null &
  4. _pid="$!"
  5. echo ">> Server started with pid: $_pid"
  6. sleep 20
  7. echo ">> Running acceptance tests..."
  8. grunt test:acceptance
  9. echo ">> Killing server (pid: $_pid)"
  10. kill -1 "$_pid"
  11. echo ">> Done"