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