Skip to content

Commit 7c0a147

Browse files
author
ShelbyZ
committed
Adding luacheck to travis
1 parent 691a568 commit 7c0a147

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

.luacheckrc

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
formatter = "plain"
2+
std = "luajit"
3+
4+
codes = true
5+
unused = false
6+
unused_args = false
7+
global = false
8+
max_line_length = false
9+
ignore = {
10+
"3.",
11+
"4.",
12+
"5.",
13+
"6."
14+
}

.travis.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ addons:
1616
- mysql-client-core-5.6
1717
- mysql-server-5.6
1818
- mysql-client-5.6
19+
- luarocks
1920

2021
install:
2122
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 90
@@ -28,4 +29,5 @@ before_script:
2829
script:
2930
- ./configure
3031
- make
31-
- sh travis_sql.sh
32+
- sh travis_sql.sh
33+
- sh travis_lua.sh

travis_lua.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
luarocks install luacheck --local
3+
luarocks install lanes --local
4+
5+
luacheck scripts -j 4
6+
exit $?

0 commit comments

Comments
 (0)