Skip to content

Commit 5762c00

Browse files
committed
.travis.yml: Lint .tld files
1 parent 9dbabce commit 5762c00

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.travis.yml

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ before_install:
3535
- export PATH=$PATH:~/hererocks/bin
3636
- eval $(luarocks path --bin)
3737
- luarocks install luacheck
38+
- luarocks install https://raw.githubusercontent.com/andremm/typedlua/master/typedlua-scm-1.rockspec
3839
- luarocks install luacov-coveralls
3940
- luarocks install busted
4041

@@ -46,6 +47,7 @@ install:
4647

4748
script:
4849
- luacheck .
50+
- tlc -o /dev/null spec/require-all.lua
4951
- busted -c
5052

5153
after_success:

spec/require-all.lua

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
-- This file is used for linting .tld files with typedlua
2+
3+
require "http.bit"
4+
require "http.client"
5+
require "http.connection_common"
6+
require "http.cookie"
7+
require "http.h1_connection"
8+
require "http.h1_reason_phrases"
9+
require "http.h1_stream"
10+
require "http.h2_connection"
11+
require "http.h2_error"
12+
require "http.h2_stream"
13+
require "http.headers"
14+
require "http.hpack"
15+
require "http.hsts"
16+
require "http.proxies"
17+
require "http.request"
18+
require "http.server"
19+
require "http.socks"
20+
require "http.stream_common"
21+
require "http.tls"
22+
require "http.util"
23+
require "http.version"
24+
require "http.websocket"
25+
require "http.zlib"
26+
require "http.compat.prosody"
27+
require "http.compat.socket"

0 commit comments

Comments
 (0)