From: Anton Yuzhaninov Date: Tue, 13 Nov 2018 21:45:09 +0000 (-0500) Subject: Run unit tests on Fedora (clang build) X-Git-Tag: 1.8.2~32^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5496ce20f0b43700809ac0906a72a168398e866b;p=rspamd.git Run unit tests on Fedora (clang build) --- diff --git a/.drone.yml b/.drone.yml index a5855d5b0..da1386e26 100644 --- a/.drone.yml +++ b/.drone.yml @@ -105,6 +105,26 @@ pipeline: - luacov-coveralls -o /rspamd/build/unit_test_lua.json --dryrun - exit $EXIT_CODE + test-fedora-clang: + # https://github.com/rspamd/rspamd-build-docker/blob/master/fedora-test/Dockerfile + image: rspamd/ci-fedora-test + pull: true + group: tests + commands: + - test "$(id -un)" = nobody + - ulimit -c unlimited + - cd /rspamd/fedora/build/test + - set +e + - ./rspamd-test -p /rspamd/lua; EXIT_CODE=$? + - set -e + # shell sets exit status of a process terminated by a signal to '128 + signal-number' + # if rspamd-test was terminated by a signal it should be SIGSEGV or SIGABRT, try to examine core + - > + if [ $EXIT_CODE -gt 128 ]; then + gdb --batch -ex 'bt' -c /var/tmp/*.rspamd-test.core ./rspamd-test; + fi + - exit $EXIT_CODE + functional: # https://github.com/rspamd/rspamd-build-docker/blob/master/ubuntu-test-func/Dockerfile image: rspamd/ci-ubuntu-test-func