mirror of
https://github.com/MinetestForFun/mysql_auth.git
synced 2025-01-05 07:30:29 +01:00
Add Travis CI and LuaCheck (#8)
This commit is contained in:
parent
d9fecd3b16
commit
4dc66c721c
15
.luacheckrc
Normal file
15
.luacheckrc
Normal file
@ -0,0 +1,15 @@
|
||||
unused_args = false
|
||||
allow_defined_top = true
|
||||
max_line_length = 999
|
||||
|
||||
globals ={
|
||||
"minetest",
|
||||
}
|
||||
|
||||
read_globals = {
|
||||
string = {fields = {"split", "trim"}},
|
||||
table = {fields = {"copy", "getn"}},
|
||||
|
||||
"mysql_base",
|
||||
"core", "dump",
|
||||
}
|
11
.travis.yml
Normal file
11
.travis.yml
Normal 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
|
@ -1,4 +1,5 @@
|
||||
# MySQL Authentication
|
||||
[![Build Status](https://travis-ci.org/MinetestForFun/mysql_auth.svg)](https://travis-ci.org/MinetestForFun/mysql_auth)
|
||||
|
||||
Plug Minetest's auth mechanism into a MySQL database.
|
||||
|
||||
|
@ -1,6 +1,4 @@
|
||||
local modname = minetest.get_current_modname()
|
||||
local modpath = minetest.get_modpath(modname)
|
||||
|
||||
local thismod = _G[modname]
|
||||
|
||||
function thismod.import_auth_txt()
|
||||
|
Loading…
Reference in New Issue
Block a user