full-test.sh 326 B

1234567891011121314151617181920212223
  1. #! /usr/bin/env bash
  2. npm rebuild
  3. echo ">> Starting server..."
  4. grunt --no-color forever:app:start
  5. echo ">> Server started"
  6. sleep 5
  7. echo ">> Running acceptance tests..."
  8. grunt --no-color test:acceptance
  9. _test_exit_code=$?
  10. echo ">> Killing server"
  11. grunt --no-color forever:app:stop
  12. echo ">> Done"
  13. exit $_test_exit_code