From a76feb15ba7f02b80cfbd75f487d2c598eb0c1f8 Mon Sep 17 00:00:00 2001 From: Colby Klein Date: Wed, 17 Feb 2016 20:20:26 -0800 Subject: [PATCH] Update .travis.yml Let's try out kikito's travis stuff to see if it works better. --- .travis.yml | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index bfe03bf..7db2bea 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,25 +1,37 @@ -language: erlang - -env: - - LUA="" - - LUA="luajit" +# http://kiki.to/blog/2016/02/04/talk-continuous-integration-with-lua/ +language: python +sudo: false branches: only: - master + - refactor + +env: + - LUA="lua=5.1" + - LUA="luajit=2.0" + - LUA="luajit=2.1" + +before_install: + - pip install hererocks + - hererocks lua_install -r^ --$LUA + - export PATH=$PATH:$PWD/lua_install/bin install: - - sudo apt-get install luajit - - sudo apt-get install luarocks - - sudo luarocks install luafilesystem - - sudo luarocks install busted + - luarocks install luacheck + - luarocks install busted + - luarocks install luacov + - luarocks install luacov-coveralls -script: "busted spec" +script: + - luacheck --std max+busted *.lua spec + - busted --verbose --coverage spec + +after_success: + - luacov-coveralls -e $TRAVIS_BUILD_DIR/lua_install notifications: irc: "irc.oftc.net#excessive" - # webhooks: - # - http://whatever/travis-results recipients: - shakesoda+travis@gmail.com email: