summaryrefslogtreecommitdiffstats
path: root/.drone.yml
diff options
context:
space:
mode:
authorAnton Yuzhaninov <citrin+git@citrin.ru>2018-10-16 12:19:25 -0400
committerAnton Yuzhaninov <citrin+git@citrin.ru>2018-10-16 12:22:32 -0400
commit0613b8af0a19ee44ebafbafbc7d853aa0d6e3081 (patch)
tree9ead3e8dd7049b8cd1e433c5ff47318980ccddbb /.drone.yml
parenta9557341524157ad8960331d4960ea3a7b6ba988 (diff)
downloadrspamd-0613b8af0a19ee44ebafbafbc7d853aa0d6e3081.tar.gz
rspamd-0613b8af0a19ee44ebafbafbc7d853aa0d6e3081.zip
Run gdb if rspamd-test dumped core
Diffstat (limited to '.drone.yml')
-rw-r--r--.drone.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml
index 78f585fab..c1a839b95 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -48,6 +48,12 @@ pipeline:
- set +e
- ./rspamd-test -p /rspamd/lua; EXIT_CODE=$?
- set -e
+ # shell sets exit status of a process that terminated by a signal to '128 + signal-number'
+ - >
+ if [ $EXIT_CODE -gt 128 ];
+ then gdb -c /var/tmp/*.rspamd-test.core ./rspamd-test -ex "set pagination 0" -ex "thread apply all bt full" --batch;
+ exit $EXIT_CODE;
+ fi
# luacov-coveralls reads luacov.stats.out written by rspamd-test using luacov module
# and writes json report for coveralls.io service
- luacov-coveralls -o /rspamd/build/unit_test_lua.json --dryrun