]> source.dussan.org Git - rspamd.git/commitdiff
Run unit tests on Fedora (clang build)
authorAnton Yuzhaninov <citrin+git@citrin.ru>
Tue, 13 Nov 2018 21:45:09 +0000 (16:45 -0500)
committerAnton Yuzhaninov <citrin+git@citrin.ru>
Tue, 13 Nov 2018 21:59:16 +0000 (16:59 -0500)
.drone.yml

index a5855d5b0b0cff432c2bf7b17c40f2d04438a9fb..da1386e264f2abb4793a5c0d315e45d719a4275b 100644 (file)
@@ -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