full-test.sh 501 B

1234567891011121314151617181920212223242526
  1. #! /usr/bin/env bash
  2. # If you're running on OS X, you probably need to manually
  3. # 'rm -r node_modules/bcrypt; npm install bcrypt' inside
  4. # the docker container, before it will start.
  5. # npm rebuild bcrypt
  6. echo ">> Starting server..."
  7. grunt --no-color forever:app:start
  8. echo ">> Server started"
  9. sleep 5
  10. echo ">> Running acceptance tests..."
  11. grunt --no-color mochaTest:acceptance
  12. _test_exit_code=$?
  13. echo ">> Killing server"
  14. grunt --no-color forever:app:stop
  15. echo ">> Done"
  16. exit $_test_exit_code