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

22 lines
309 B
Bash
Raw Normal View History

#! /usr/bin/env bash
echo ">> Starting server..."
grunt >> /dev/null &
_pid="$!"
echo ">> Server started with pid: $_pid"
sleep 20
echo ">> Running acceptance tests..."
grunt test:acceptance
2016-07-08 09:31:43 -04:00
_test_exit_code=$?
echo ">> Killing server (pid: $_pid)"
kill -1 "$_pid"
echo ">> Done"
2016-07-08 09:31:43 -04:00
exit $_test_exit_code