summaryrefslogtreecommitdiffstats
path: root/.circleci
diff options
context:
space:
mode:
authorMikhail Galanin <mgalanin@mimecast.com>2018-10-04 08:57:32 +0100
committerMikhail Galanin <mgalanin@mimecast.com>2018-10-04 08:59:49 +0100
commit79b756e7307bd5f4faba02d6f8719856989e984b (patch)
tree80dcc298ccbc217ce8019996689eb58c529f2b3b /.circleci
parentbe7dfc2c7710904e3b87226b624e34e00950b27d (diff)
downloadrspamd-79b756e7307bd5f4faba02d6f8719856989e984b.tar.gz
rspamd-79b756e7307bd5f4faba02d6f8719856989e984b.zip
[Minor] set umask 0000 when building rspamd
To allow rspamd dumpring coverage data. In functional tests it runs under "nobody" user and became unable to do this
Diffstat (limited to '.circleci')
-rw-r--r--.circleci/config.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index b1fb59779..19a2d3057 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -55,6 +55,10 @@ jobs:
- run: sudo apt-get install -qq cmake libevent-dev libglib2.0-dev libicu-dev libluajit-5.1-dev libmagic-dev libsqlite3-dev libssl-dev ragel libunwind-dev libunwind8
- run: mkdir ../build ; mkdir ../install ; cd ../build
+ # this weird peice is needed to properly collect coverage
+ # rspamd works under "nobody" user and will not be able to dump
+ # the coverage if directories have restrictive permissions
+ - run: umask 0000
- run: cmake ../project -DDBDIR=/nana -DENABLE_COVERAGE=ON -DENABLE_LIBUNWIND=ON -DCMAKE_INSTALL_PREFIX=../install
- run: make install -j`nproc`
@@ -111,7 +115,8 @@ jobs:
- run: sudo luarocks install luacov
- run: cd ../build
- - run: set +e; RSPAMD_INSTALLROOT=../install sudo -E robot -x xunit.xml --exclude isbroken ../project/test/functional/cases; echo "export RETURN_CODE=$?" >> $BASH_ENV
+ # see coverage notice in "build" stage
+ - run: set +e; RSPAMD_INSTALLROOT=../install sudo -E bash -c "umask 0000; robot -x xunit.xml --exclude isbroken ../project/test/functional/cases"; echo "export RETURN_CODE=$?" >> $BASH_ENV
- *capture_coverage_data