forked from 2600hz/kazoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci-couch: Travis plays with bunny, now on the sofa
- Loading branch information
Showing
6 changed files
with
35 additions
and
14 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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[ {lager, [ {handlers, [ {lager_console_backend, [ debug | ||
, {lager_kazoo_formatter, [ date, " ", time | ||
, color | ||
, " [", severity ,"] ", "|" | ||
, {function, <<"0000000000">>}, "|" | ||
, module, ":", line | ||
, " (", pid , ") " | ||
, message | ||
, "\e[0m" | ||
, "\r\n" | ||
]} | ||
]} | ||
]} | ||
, {colored, true} | ||
, {error_logger_hwm, 500} | ||
]} | ||
]. |
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,16 +1,18 @@ | ||
#!/bin/bash -x | ||
|
||
runtime0=10 # seconds | ||
runtime1=11 # seconds | ||
runtime2=12 # seconds | ||
rel=${REL:-whistle_apps} # whistle_apps | ecallmgr | ... | ||
#!/bin/bash | ||
|
||
[[ ! -d _rel ]] && echo 'Cannot find _rel/ Is the release built?' && exit -1 | ||
|
||
echo 'Checking the startup of the release...' | ||
|
||
sleep $runtime0 && ACT=stop REL=$rel make release & | ||
sleep $runtime1 && ACT=stop REL=$rel make release & | ||
sleep $runtime2 && ACT=stop REL=$rel make release & | ||
rel=${REL:-whistle_apps} # whistle_apps | ecallmgr | ... | ||
[[ $rel != *@* ]] && rel=$rel@127.0.0.1 | ||
|
||
[[ $rel != whistle_apps* ]] && export KAZOO_APPS='ecallmgr' | ||
|
||
function stop() { | ||
erl -noshell -setcookie change_me -name stopper@${rel##*@} -eval "ok = rpc:call('$rel', init, stop, [])." -s init stop | ||
} | ||
|
||
sleep 180 && stop & | ||
|
||
REL=$rel make release |