- cmake ../rspamd -DDBDIR=/nana -DENABLE_COVERAGE=ON -DCMAKE_INSTALL_PREFIX=../install
- make install
- RSPAMADM=../install/bin/rspamadm RSPAMC=../install/bin/rspamc RSPAMD=../install/bin/rspamd sudo -E robot -x xunit.xml --exclude isbroken ../rspamd/test/functional/cases
- - luacheck --config ../rspamd/.luacheckrc ../rspamd
- 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; fi
post:
--- /dev/null
+*** Settings ***
+Library Process
+
+*** Test Cases ***
+Lua Check
+ ${result} = Run Process luacheck -q --no-color . cwd=${TOPDIR}
+ Run Keyword If ${result.rc} != 0 Log ${result.stdout}
+ Should Be Equal As Integers ${result.rc} 0 msg=${result.stdout} values=false
*** Keywords ***
Export Global Variables
${TESTDIR} = Get Test Directory
+ ${TOPDIR} = Get Top Dir
${RSPAMADM} = Get Rspamadm
${RSPAMC} = Get Rspamc
${RSPAMD} = Get Rspamd
Set Global Variable ${RSPAMC}
Set Global Variable ${RSPAMD}
Set Global Variable ${TESTDIR}
+ Set Global Variable ${TOPDIR}