full-test.sh 343 B

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