1
0

Let Travis-CI automatically run luacheck on the game

Este cometimento está contido em:
Tim
2016-06-26 17:12:40 +02:00
cometido por paramat
ascendente 20fa037313
cometimento b408e9cce6
2 ficheiros modificados com 31 adições e 0 eliminações

17
.luacheckrc Ficheiro normal
Ver ficheiro

@@ -0,0 +1,17 @@
unused_args = false
allow_defined_top = true
read_globals = {
"DIR_DELIM",
"minetest", "core",
"dump",
"vector", "nodeupdate",
"VoxelManip", "VoxelArea",
"PseudoRandom", "ItemStack",
}
-- Overwrites minetest.handle_node_drops
files["mods/creative/init.lua"].globals = { "minetest" }
-- Don't report on legacy definitions of globals.
files["mods/default/legacy.lua"].global = false

14
.travis.yml Ficheiro normal
Ver ficheiro

@@ -0,0 +1,14 @@
language: generic
branches:
only:
- master
sudo: required
before_install:
- sudo apt-get update
- sudo apt-get install -y luarocks
- sudo luarocks install luacheck
script: luacheck --no-color ./mods