aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-11-15 10:46:10 +0200
committerAndrew Lewis <nerf@judo.za.org>2016-11-15 17:30:39 +0200
commit3e6346b870da81c586d301cd70ee4ac52abde8fe (patch)
treeb732067cd25fec60961944e13ed92b29dbed87fb
parentda83f5296a9e41bc55c8a5bd83fdc3bfd7bf5f54 (diff)
downloadrspamd-3e6346b870da81c586d301cd70ee4ac52abde8fe.tar.gz
rspamd-3e6346b870da81c586d301cd70ee4ac52abde8fe.zip
[Test] Integrate luacheck into CI
-rw-r--r--circle.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/circle.yml b/circle.yml
index 9dd8073c1..e1745e3cd 100644
--- a/circle.yml
+++ b/circle.yml
@@ -1,12 +1,11 @@
dependencies:
pre:
- sudo apt-get update -qq || true
- - sudo apt-get install -qq cmake gcc lcov libevent-dev libglib2.0-dev libgmime-2.6-dev libluajit-5.1-dev liblua5.1-0-dev libmagic-dev libpcre3-dev libsqlite3-dev libssl-dev make python-dev ragel redis-server
+ - sudo apt-get install -qq cmake gcc lcov libevent-dev libglib2.0-dev libgmime-2.6-dev libluajit-5.1-dev liblua5.1-0-dev libmagic-dev libpcre3-dev libsqlite3-dev libssl-dev luarocks make python-dev ragel redis-server
- gem install coveralls-lcov
- sudo pip install demjson ipaddress psutil robotframework
- - wget http://download.redis.io/redis-stable.tar.gz
- - tar xvzf redis-stable.tar.gz
- - cd redis-stable && make && sudo cp src/redis-cli /usr/bin/
+ - cd .. && wget http://download.redis.io/redis-stable.tar.gz && tar xvzf redis-stable.tar.gz && cd redis-stable && make && sudo cp src/redis-cli /usr/bin/
+ - sudo luarocks install luacheck
test:
override:
@@ -14,6 +13,7 @@ test:
- 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: