File tree Expand file tree Collapse file tree 8 files changed +44
-13
lines changed Expand file tree Collapse file tree 8 files changed +44
-13
lines changed Original file line number Diff line number Diff line change 6
6
matrix :
7
7
- LUA=lua5.1
8
8
- LUA=lua5.2
9
+ - LUA=lua5.3
9
10
- LUA=luajit
10
11
11
12
branches :
@@ -15,11 +16,11 @@ branches:
15
16
before_install :
16
17
- sudo apt-get update
17
18
- bash .travis/setup_lua.sh
18
- - sudo luarocks install lunitx
19
+ - sudo luarocks install https://raw.github.com/moteus/lunit/moteus-skip/rockspecs/ lunitx-scm.mot.skip-0.rockspec
19
20
- sudo pip install cpp-coveralls
20
- - sudo luarocks install dkjson
21
- - sudo luarocks install luafilesystem
22
- - sudo luarocks install lua-path
21
+ - sudo luarocks install dkjson --deps-mode=none
22
+ - sudo luarocks install luafilesystem --from=https://rocks.moonscript.org/dev
23
+ - sudo luarocks install lua-path --deps-mode=none
23
24
- sudo luarocks install luacov-coveralls
24
25
25
26
install :
Original file line number Diff line number Diff line change 56
56
elif [ " $LUA " == " lua5.2" ]; then
57
57
curl http://www.lua.org/ftp/lua-5.2.3.tar.gz | tar xz
58
58
cd lua-5.2.3;
59
+ elif [ " $LUA " == " lua5.3" ]; then
60
+ curl http://www.lua.org/work/lua-5.3.0-beta.tar.gz | tar xz
61
+ cd lua-5.3.0-beta;
59
62
fi
60
63
sudo make $PLATFORM install;
61
64
fi
@@ -93,4 +96,6 @@ elif [ "$LUA" == "lua5.1" ]; then
93
96
rm -rf lua-5.1.5;
94
97
elif [ " $LUA " == " lua5.2" ]; then
95
98
rm -rf lua-5.2.3;
99
+ elif [ " $LUA " == " lua5.3" ]; then
100
+ rm -rf lua-5.3.0-beta;
96
101
fi
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ description = {
15
15
}
16
16
17
17
dependencies = {
18
- " lua >= 5.1, < 5.3 "
18
+ " lua >= 5.1, < 5.4 "
19
19
}
20
20
21
21
external_dependencies = {
Original file line number Diff line number Diff line change 14
14
#include "lua.h"
15
15
#include "lauxlib.h"
16
16
17
+ #if LUA_VERSION_NUM >= 503 /* Lua 5.3 */
18
+
19
+ #ifndef luaL_optint
20
+ # define luaL_optint luaL_optinteger
21
+ #endif
22
+
23
+ #ifndef luaL_checkint
24
+ # define luaL_checkint luaL_checkinteger
25
+ #endif
26
+
27
+ #ifndef luaL_checklong
28
+ # define luaL_checklong luaL_checkinteger
29
+ #endif
30
+
31
+ #endif
32
+
33
+
17
34
#if LUA_VERSION_NUM >= 502 // lua 5.2
18
35
19
36
// lua_rawgetp
Original file line number Diff line number Diff line change 1
- local RUN = lunit and function ()end or function ()
1
+ local lunit , RUN = lunit do
2
+ RUN = lunit and function ()end or function ()
2
3
local res = lunit .run ()
3
4
if res .errors + res .failed > 0 then
4
5
os.exit (- 1 )
5
6
end
6
7
return os.exit (0 )
7
8
end
9
+ lunit = require " lunit"
10
+ end
8
11
9
12
local _ ,luacov = pcall (require , " luacov" )
10
- local lunit = require " lunit"
11
13
local TEST_CASE = assert (lunit .TEST_CASE )
12
14
local skip = lunit .skip or function () end
13
15
Original file line number Diff line number Diff line change 1
- local RUN = lunit and function ()end or function ()
1
+ local lunit , RUN = lunit do
2
+ RUN = lunit and function ()end or function ()
2
3
local res = lunit .run ()
3
4
if res .errors + res .failed > 0 then
4
5
os.exit (- 1 )
5
6
end
6
7
return os.exit (0 )
7
8
end
9
+ lunit = require " lunit"
10
+ end
8
11
9
- local lunit = require " lunit"
10
12
local TEST_CASE = assert (lunit .TEST_CASE )
11
13
local skip = lunit .skip or function () end
12
14
Original file line number Diff line number Diff line change 1
- local RUN = lunit and function ()end or function ()
1
+ local lunit , RUN = lunit do
2
+ RUN = lunit and function ()end or function ()
2
3
local res = lunit .run ()
3
4
if res .errors + res .failed > 0 then
4
5
os.exit (- 1 )
5
6
end
6
7
return os.exit (0 )
7
8
end
9
+ lunit = require " lunit"
10
+ end
8
11
9
- local lunit = require " lunit"
10
12
local TEST_CASE = assert (lunit .TEST_CASE )
11
13
local skip = lunit .skip or function () end
12
14
Original file line number Diff line number Diff line change 1
- local RUN = lunit and function ()end or function ()
1
+ local lunit , RUN = lunit do
2
+ RUN = lunit and function ()end or function ()
2
3
local res = lunit .run ()
3
4
if res .errors + res .failed > 0 then
4
5
os.exit (- 1 )
5
6
end
6
7
return os.exit (0 )
7
8
end
9
+ lunit = require " lunit"
10
+ end
8
11
9
- local lunit = require " lunit"
10
12
local TEST_CASE = assert (lunit .TEST_CASE )
11
13
local skip = lunit .skip or function () end
12
14
You can’t perform that action at this time.
0 commit comments