Skip to content

Commit 33f576a

Browse files
committed
update ci for Lua 5.4
1 parent 804cd76 commit 33f576a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.travis.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,24 @@ sudo: false
33

44
env:
55
global:
6-
- LUAROCKS=2.4.3
76
- ROCKSPEC=rockspecs/lua-protobuf-scm-1.rockspec
87
matrix:
98
- LUA="lua 5.1"
109
- LUA="lua 5.2"
1110
- LUA="lua 5.3"
11+
- LUA="lua 5.4"
1212
- LUA="luajit 2.0"
1313
- LUA="luajit 2.1"
1414

1515
branches:
1616
only:
1717
- master
18-
- new
18+
- lua54
1919

2020
before_install:
21-
- pip install --user hererocks urllib3[secure] cpp-coveralls
22-
- hererocks env --$LUA -rlatest # Use latest LuaRocks, install into 'env' directory.
23-
- source env/bin/activate # Add directory with all installed binaries to PATH.
21+
- curl -O https://raw.githubusercontent.com/luarocks/hererocks/master/hererocks.py
22+
- python hererocks.py env --$LUA -rlatest
23+
- source env/bin/activate
2424

2525
install:
2626
# - sudo luarocks make $ROCKSPEC CFLAGS="-O2 -fPIC -ftest-coverage -fprofile-arcs" LIBFLAG="-shared --coverage"

luaunit.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ end
204204
M.private.sortedPairs = sortedPairs
205205

206206
-- seed the random with a strongly varying seed
207-
math.randomseed(os.clock()*1E11)
207+
math.randomseed(math.floor(os.clock()*1E11))
208208

209209
local function randomizeTable( t )
210210
-- randomize the item orders of the table t

0 commit comments

Comments
 (0)