2017-02-09 15:38:25 +00:00
|
|
|
#!/bin/bash -x
|
2017-01-24 12:18:30 +00:00
|
|
|
|
2017-01-25 14:08:39 +00:00
|
|
|
export SHARELATEX_CONFIG=`pwd`/test/acceptance/scripts/settings.test.coffee
|
2017-01-24 12:18:30 +00:00
|
|
|
|
|
|
|
echo ">> Starting server..."
|
|
|
|
|
2017-01-26 12:20:41 +00:00
|
|
|
grunt --no-color >server.log 2>&1 &
|
2017-01-24 12:18:30 +00:00
|
|
|
|
|
|
|
echo ">> Server started"
|
|
|
|
|
|
|
|
sleep 5
|
|
|
|
|
|
|
|
echo ">> Running acceptance tests..."
|
2017-03-06 14:43:14 +00:00
|
|
|
grunt --no-color mochaTest:acceptance
|
2017-01-24 12:18:30 +00:00
|
|
|
_test_exit_code=$?
|
|
|
|
|
|
|
|
echo ">> Killing server"
|
|
|
|
|
|
|
|
kill %1
|
|
|
|
|
|
|
|
echo ">> Done"
|
|
|
|
|
|
|
|
exit $_test_exit_code
|