mirror of
https://github.com/TangentFoxy/love-release.git
synced 2025-07-28 11:02:20 +00:00
Add framework for testing
This commit is contained in:
35
.travis.yml
Normal file
35
.travis.yml
Normal file
@@ -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
|
@@ -1,5 +1,9 @@
|
|||||||
# love-release
|
# love-release
|
||||||
[](LICENSE)
|
[](LICENSE)
|
||||||
|
[](https://travis-ci.org/MisterDA/love-release)
|
||||||
|
[](https://coveralls.io/github/MisterDA/love-release?branch=master)
|
||||||
|
[](https://luarocks.org/modules/misterda/love-release)
|
||||||
|
[](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).
|
[Lua][lua] 5.1 script that makes [LÖVE][love] game release easier (previously Bash script).
|
||||||
Automates LÖVE [Game Distribution][game_dist].
|
Automates LÖVE [Game Distribution][game_dist].
|
||||||
|
7
spec/main_spec.lua
Normal file
7
spec/main_spec.lua
Normal file
@@ -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)
|
Reference in New Issue
Block a user