From 6d8cde0716a5cfc39e8358055c7840b48330586e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonin=20D=C3=A9cimo?= Date: Sat, 6 Feb 2016 13:13:02 +0100 Subject: [PATCH] Add framework for testing --- .travis.yml | 35 +++++++++++++++++++++++++++++++++++ README.md | 4 ++++ spec/main_spec.lua | 7 +++++++ 3 files changed, 46 insertions(+) create mode 100644 .travis.yml create mode 100644 spec/main_spec.lua diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..c26d5a7 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,35 @@ +language: python +sudo: false + +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 # Add directory with all installed binaries to PATH + +install: + - luarocks install luacheck + - luarocks install busted + - luarocks install luacov + - luarocks install luacov-coveralls + +script: + - luacheck --std lua51+luajit src + - luacheck --std busted spec + - busted --verbose --coverage + +after_success: + - luacov-coveralls --exclude $TRAVIS_BUILD_DIR/lua_install + +branches: + only: + - master + +notifications: + email: + on_success: change + on_failure: always diff --git a/README.md b/README.md index 62c86e7..1357a38 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ # love-release [![License](http://img.shields.io/badge/License-MIT-brightgreen.svg)](LICENSE) +[![Build Status](https://travis-ci.org/MisterDA/love-release.svg?branch=master)](https://travis-ci.org/MisterDA/love-release) +[![Coverage Status](https://coveralls.io/repos/github/MisterDA/love-release/badge.svg?branch=master)](https://coveralls.io/github/MisterDA/love-release?branch=master) +[![LuaRocks](https://img.shields.io/badge/LuaRocks-2.0.0-blue.svg)](https://luarocks.org/modules/misterda/love-release) +[![Lua](https://img.shields.io/badge/Lua-5.1%2C%20JIT-blue.svg)](https://img.shields.io/badge/Lua-5.1%2C%20JIT%2C%205.2-blue.svg) [Lua][lua] 5.1 script that makes [LÖVE][love] game release easier (previously Bash script). Automates LÖVE [Game Distribution][game_dist]. diff --git a/spec/main_spec.lua b/spec/main_spec.lua new file mode 100644 index 0000000..9b0d1bb --- /dev/null +++ b/spec/main_spec.lua @@ -0,0 +1,7 @@ +describe("love-release tests", function() + describe("should test something", function() + it("not right now", function() + assert.truthy("Sorry.") + end) + end) +end)