James Allen 10 лет назад
Родитель
Сommit
db8b4bf991
1 измененных файлов с 9 добавлено и 7 удалено
  1. 9 7
      services/document-updater/test/acceptance/scripts/full-test.sh

+ 9 - 7
services/document-updater/test/acceptance/scripts/full-test.sh

@@ -1,20 +1,22 @@
 #! /usr/bin/env bash
 
+npm rebuild
+
 echo ">> Starting server..."
 
-grunt execute:app >> /dev/null &
-_pid="$!"
+grunt --no-color forever:app:start
 
-echo ">> Server started with pid: $_pid"
+echo ">> Server started"
 
-sleep 20
+sleep 5
 
 echo ">> Running acceptance tests..."
-grunt mochaTest:acceptance
+grunt --no-color test:acceptance
 _test_exit_code=$?
 
-echo ">> Killing server (pid: $_pid)"
-kill -1 "$_pid"
+echo ">> Killing server"
+
+grunt --no-color forever:app:stop
 
 echo ">> Done"