overleaf/services/document-updater/test/acceptance/scripts/full-test.sh

24 lines
333 B
Bash
Raw Normal View History

#! /usr/bin/env bash
# npm rebuild
2016-11-29 09:57:05 -05:00
echo ">> Starting server..."
2016-11-29 09:57:05 -05:00
grunt --no-color forever:app:start
2016-11-29 09:57:05 -05:00
echo ">> Server started"
2016-11-29 09:57:05 -05:00
sleep 5
echo ">> Running acceptance tests..."
grunt --no-color mochaTest:acceptance
2016-07-08 09:31:43 -04:00
_test_exit_code=$?
2016-11-29 09:57:05 -05:00
echo ">> Killing server"
grunt --no-color forever:app:stop
echo ">> Done"
2016-07-08 09:31:43 -04:00
exit $_test_exit_code