Add Travis CI and LuaCheck (#2)

This commit is contained in:
David Leal 2020-05-06 13:58:07 -05:00 committed by GitHub
parent 1a36d6a7d5
commit 00a0c881a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 33 additions and 2 deletions

19
.luacheckrc Normal file
View File

@ -0,0 +1,19 @@
unused_args = false
allow_defined_top = true
max_line_length = 999
globals ={
"minetest",
}
read_globals = {
string = {fields = {"split", "trim"}},
table = {fields = {"copy", "getn"}},
}
files["init.lua"].ignore = { "modname", "tab" }
files["mysql/mysql.lua"].ignore = { "" }
files["mysql/mysql_h.lua"].ignore = { "" }
files["mysql/mysql_print.lua"].ignore = { "" }
files["mysql/mysql_test.lua"].ignore = { "" }
-- ^ Ignore everything

11
.travis.yml Normal file
View File

@ -0,0 +1,11 @@
language: generic
addons:
apt:
packages:
- luarocks
before_install:
- luarocks install --local luacheck
script:
- $HOME/.luarocks/bin/luacheck .
notifications:
email: false

View File

@ -1,4 +1,5 @@
# mysql_base
[![Build Status](https://travis-ci.org/MinetestForFun/mysql_base.svg)](https://travis-ci.org/MinetestForFun/mysql_base)
Base Minetest mod to connect to a MySQL database. Used by other mods to read/write data.