full-test.sh 360 B

1234567891011121314151617181920212223
  1. #!/bin/bash -x
  2. export SHARELATEX_CONFIG=`pwd`/test/acceptance/scripts/settings.test.js
  3. echo ">> Starting server..."
  4. grunt --no-color >server.log 2>&1 &
  5. echo ">> Server started"
  6. sleep 5
  7. echo ">> Running acceptance tests..."
  8. grunt --no-color mochaTest:acceptance
  9. _test_exit_code=$?
  10. echo ">> Killing server"
  11. kill %1
  12. echo ">> Done"
  13. exit $_test_exit_code