Browse Source

Add Travis CI and LuaCheck (#8)

master
David Leal GitHub 3 weeks ago
parent
commit
4dc66c721c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 28 additions and 3 deletions
  1. +15
    -0
      .luacheckrc
  2. +11
    -0
      .travis.yml
  3. +1
    -0
      README.md
  4. +0
    -2
      auth_txt_import.lua
  5. +1
    -1
      init.lua

+ 15
- 0
.luacheckrc View 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
- 0
.travis.yml 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

+ 1
- 0
README.md View File

@@ -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.



+ 0
- 2
auth_txt_import.lua View File

@@ -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()


+ 1
- 1
init.lua View File

@@ -1,5 +1,5 @@
local modname = minetest.get_current_modname()
local modpath = minetest.get_modpath(modname)
local modpath = minetest.get_modpath(modname)

local thismod = {
enabled = false


Loading…
Cancel
Save