full-test.sh 326 B

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