-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
97f251c
commit fc2e495
Showing
1 changed file
with
17 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,24 @@ | ||
trap cleanup INT TERM | ||
killall soffice.bin | ||
killall unoserver | ||
|
||
cleanup() { | ||
killall unoserver | ||
exit | ||
} | ||
trap cleanup INT TERM | ||
|
||
unoserver & | ||
|
||
unoserver --daemon | ||
sleep 1 | ||
echo -e "Waiting for unoserver to start..." | ||
|
||
while ! nc -z 127.0.0.1 2002; do | ||
echo -n "." | ||
sleep 0.1 # wait for 1/10 of the second before check again | ||
done | ||
|
||
echo -e "Running tests" | ||
vendor/bin/phpunit | ||
|
||
killall unoserver | ||
|
||
exit $? |