- mkdir ../build ; mkdir ../install ; cd ../build
- cmake ../rspamd -DDBDIR=/nana -DENABLE_COVERAGE=ON -DCMAKE_INSTALL_PREFIX=../install -DENABLE_HIREDIS=ON
- make install -j`nproc`
- - RSPAMADM=../install/bin/rspamadm RSPAMC=../install/bin/rspamc RSPAMD=../install/bin/rspamd sudo -E robot -x xunit.xml --exclude isbroken ../rspamd/test/functional/cases
+ - RSPAMD_INSTALLROOT=../install sudo -E robot -x xunit.xml --exclude isbroken ../rspamd/test/functional/cases
- lcov --no-external -b ../rspamd -d ../rspamd -c --output-file coverage.info
- if [ ! -z $COVERALLS_REPO_TOKEN ]; then coveralls-lcov -t ${COVERALLS_REPO_TOKEN} coverage.info || true; fi
post:
${RSPAMADM} = Get Rspamadm
${RSPAMC} = Get Rspamc
${RSPAMD} = Get Rspamd
+ ${INSTALLROOT} = Get Install Root
+ Set Global Variable ${INSTALLROOT}
Set Global Variable ${RSPAMADM}
Set Global Variable ${RSPAMC}
Set Global Variable ${RSPAMD}
filters = ["spf", "dkim", "regexp"]
url_tld = "${URL_TLD}"
pidfile = "${TMPDIR}/rspamd.pid"
- lua_path = "${TESTDIR}/../../contrib/lua-fun/?.lua"
+ lua_path = "${INSTALLROOT}/share/rspamd/lib/?.lua"
dns {
nameserver = ["8.8.8.8", "8.8.4.4"];
retransmits = 10;
modules {
path = "${TESTDIR}/../../src/plugins/lua/"
}
-lua = "${TESTDIR}/../../lualib/global_functions.lua"
+lua = "${INSTALLROOT}/share/rspamd/rules/rspamd.lua"
${PLUGIN_CONFIG}
filters = ["spf", "dkim", "regexp"]
url_tld = "${URL_TLD}"
pidfile = "${TMPDIR}/rspamd.pid"
- lua_path = "${TESTDIR}/../../contrib/lua-fun/?.lua"
+ lua_path = "${INSTALLROOT}/share/rspamd/lib/?.lua"
dns {
nameserver = ["8.8.8.8", "8.8.4.4"];
retransmits = 10;
return get_test_directory() + "/../../"
+def get_install_root():
+ if os.environ.get('RSPAMD_INSTALLROOT'):
+ return os.path.abspath(os.environ['RSPAMD_INSTALLROOT'])
+
+ return os.path.abspath("../install/")
+
def get_rspamd():
if os.environ.get('RSPAMD'):
return os.environ['RSPAMD']
+ if os.environ.get('RSPAMD_INSTALLROOT'):
+ return os.environ['RSPAMD_INSTALLROOT'] + "/bin/rspamd"
dname = get_top_dir()
return dname + "/src/rspamd"
def get_rspamc():
if os.environ.get('RSPAMC'):
return os.environ['RSPAMC']
+ if os.environ.get('RSPAMD_INSTALLROOT'):
+ return os.environ['RSPAMD_INSTALLROOT'] + "/bin/rspamc"
dname = get_top_dir()
return dname + "/src/client/rspamc"
def get_rspamadm():
if os.environ.get('RSPAMADM'):
return os.environ['RSPAMADM']
+ if os.environ.get('RSPAMD_INSTALLROOT'):
+ return os.environ['RSPAMD_INSTALLROOT'] + "/bin/rspamadm"
dname = get_top_dir()
return dname + "/src/rspamadm/rspamadm"