Skip to content

Commit

Permalink
Let Travis-CI automatically run luacheck on the game
Browse files Browse the repository at this point in the history
  • Loading branch information
t4im authored and paramat committed Aug 9, 2016
1 parent 20fa037 commit b408e9c
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .luacheckrc
@@ -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 changes: 14 additions & 0 deletions .travis.yml
@@ -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

0 comments on commit b408e9c

Please sign in to comment.