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

24 lines
326 B
Bash
Raw Normal View History

#! /usr/bin/env bash
2016-11-29 09:57:05 -05:00
npm rebuild
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..."
2016-11-29 09:57:05 -05:00
grunt --no-color test: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