summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Yuzhaninov <citrin+git@citrin.ru>2018-10-29 20:51:31 -0400
committerAnton Yuzhaninov <citrin+git@citrin.ru>2018-10-29 20:58:15 -0400
commit841f1d22733b887ba8acb77146152a35d1a0e095 (patch)
tree88c82b494db55c01e113ba5be14187b4bdb84e5b
parent55d667d387bdbc89347aee4187efcdf6c86863b8 (diff)
downloadrspamd-841f1d22733b887ba8acb77146152a35d1a0e095.tar.gz
rspamd-841f1d22733b887ba8acb77146152a35d1a0e095.zip
Build with clang
-rw-r--r--.drone.yml20
1 files changed, 19 insertions, 1 deletions
diff --git a/.drone.yml b/.drone.yml
index 834229210..504ee1318 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -9,7 +9,7 @@ pipeline:
# and we need to download it anyway
image: ubuntu:18.04
commands:
- - install -d -o nobody -g nogroup /rspamd/build /rspamd/install
+ - install -d -o nobody -g nogroup /rspamd/build /rspamd/install /rspamd/fedora/build /rspamd/fedora/install
# lua-torch CMakeLists writes to src dir
- chown nobody $CI_WORKSPACE/contrib/lua-torch/nn
# for debug
@@ -29,6 +29,24 @@ pipeline:
- make -j $ncpu install
- make -j $ncpu rspamd-test
+ build-clang:
+ # https://github.com/rspamd/rspamd-build-docker/blob/master/fedora-build/Dockerfile
+ image: rspamd/ci-fedora-build
+ group: build
+ commands:
+ - test "$(id -un)" = nobody
+ - cd /rspamd/fedora/build
+ - export LDFLAGS='-fuse-ld=lld'
+ - >
+ cmake
+ -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++
+ -DCMAKE_INSTALL_PREFIX=/rspamd/fedora/install
+ -DCMAKE_RULE_MESSAGES=OFF
+ $CI_WORKSPACE
+ - ncpu=$(getconf _NPROCESSORS_ONLN)
+ - make -j $ncpu install
+ - make -j $ncpu rspamd-test
+
eslint:
image: node:10-alpine
group: build