From 551f75f39cf8d8651436ff15c690a0daadc1c56b Mon Sep 17 00:00:00 2001 From: Lucien Greathouse Date: Fri, 8 Dec 2017 13:59:36 -0800 Subject: [PATCH] Implement Lua unit tests, this may fail --- .travis.yml | 43 +++++++++++++++++++++++++++++++++++-------- 1 file changed, 35 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3a5c36c8..e4917928 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,36 @@ -language: rust -rust: - - stable - - beta - - nightly matrix: - allow_failures: - - rust: nightly -cache: cargo \ No newline at end of file + include: + - language: rust + rust: + - stable + - beta + - nightly + matrix: + allow_failures: + - rust: nightly + cache: cargo + + # http://kiki.to/blog/2016/02/04/talk-continuous-integration-with-lua/ + - language: python + env: + - LUA="lua=5.1" + + before_install: + - pip install hererocks + - hererocks lua_install -r^ --$LUA + - export PATH=$PATH:$PWD/lua_install/bin + + install: + - luarocks install luafilesystem + - luarocks install busted + - luarocks install luacov + - luarocks install luacov-coveralls + - luarocks install luacheck + - git submodule update --init --recursive + + script: + - cd plugin && luacheck . + - lua -lluacov spec.lua + + after_success: + - luacov-coveralls -e $TRAVIS_BUILD_DIR/lua_install \ No newline at end of file