aboutsummaryrefslogtreecommitdiffstats
path: root/circle.yml
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-08-16 13:30:23 +0200
committerAndrew Lewis <nerf@judo.za.org>2016-08-16 13:30:23 +0200
commit5124bd8ae13ffbee3110242167f1a19e94a74d67 (patch)
tree2658d9894c6ea34fb9bc15739fb07497f6ff7569 /circle.yml
parent5cf3a74fbd1d0ba0c59d50bfec91777fe4853dd2 (diff)
downloadrspamd-5124bd8ae13ffbee3110242167f1a19e94a74d67.tar.gz
rspamd-5124bd8ae13ffbee3110242167f1a19e94a74d67.zip
[Test] Use out of tree build for tests/code coverage
- Also a loosely-related fix for test library
Diffstat (limited to 'circle.yml')
-rw-r--r--circle.yml12
1 files changed, 6 insertions, 6 deletions
diff --git a/circle.yml b/circle.yml
index 178fcb97a..2ecec8713 100644
--- a/circle.yml
+++ b/circle.yml
@@ -7,12 +7,12 @@ dependencies:
test:
override:
- - cmake . -DENABLE_COVERAGE=ON -DCMAKE_INSTALL_PREFIX=./_install
- - cmake --build . --target install
- - sudo robot test/functional/cases
- - lcov --no-external -b . -d . -c --output-file coverage.info
- - lcov -r coverage.info *.rl
- - ln -s src/ragel .
+ - mkdir ../build ; mkdir ../install ; cd ../build
+ - cmake ../rspamd -DENABLE_COVERAGE=ON -DCMAKE_INSTALL_PREFIX=../install
+ - make install
+ - RSPAMADM=../install/bin/rspamadm RSPAMC=../install/bin/rspamc RSPAMD=../install/bin/rspamd sudo -E robot ../rspamd/test/functional/cases
+ - lcov --no-external -b ../rspamd -d ../rspamd -c --output-file coverage.info
+ - ln -s ../rspamd/src/ragel ../rspamd
- if [ ! -z $COVERALLS_REPO_TOKEN ]; then coveralls-lcov -t ${COVERALLS_REPO_TOKEN} coverage.info; fi
post:
- for i in output.xml log.html report.html; do mv $i $CIRCLE_ARTIFACTS; done