forked from mpeterv/luacheck
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (36 loc) · 1.29 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
language: c
sudo: false
cache:
directories: here
matrix:
include:
- compiler: ": Lua51"
env: LUA="lua 5.1"
- compiler: ": Lua52"
env: LUA="lua 5.2"
- compiler: ": Lua53"
env: LUA="lua 5.3"
- compiler: ": LuaJIT20"
env: LUA="luajit 2.0"
- compiler: ": LuaJIT21"
env: LUA="luajit 2.1"
install:
- pip install --user hererocks
- pip install --user codecov
- hererocks here --$LUA -r https://github.com/mpeterv/luarocks@upgrade-install
- export PATH="$PWD/here/bin:$PATH"
- luarocks install lanes --upgrade --upgrade-deps
- luarocks install busted --upgrade --upgrade-deps
- luarocks install cluacov --upgrade --upgrade-deps
script:
- busted -c
- lua -e 'package.path="./src/?.lua;./src/?/init.lua;"..package.path' -lluacov bin/luacheck.lua luacheck-dev-1.rockspec -j2
- lua -e 'package.preload.lfs=error;package.path="./src/?.lua;./src/?/init.lua;"..package.path' -lluacov bin/luacheck.lua src | grep 'I/O error'
- lua -e 'package.preload.lanes=error;package.path="./src/?.lua;./src/?/init.lua;"..package.path' -lluacov bin/luacheck.lua --version | grep 'Not found'
- lua install.lua path/to/luacheck
- mv src src2
- path/to/luacheck/bin/luacheck spec/*.lua
- mv src2 src
after_script:
- luacov
- codecov -f luacov.report.out -X gcov