update ci for Lua 5.4

This commit is contained in:
Xavier Wang
2020-04-16 21:38:43 +08:00
parent 804cd7618b
commit 33f576a12c
2 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -3,24 +3,24 @@ sudo: false
env:
global:
- LUAROCKS=2.4.3
- ROCKSPEC=rockspecs/lua-protobuf-scm-1.rockspec
matrix:
- LUA="lua 5.1"
- LUA="lua 5.2"
- LUA="lua 5.3"
- LUA="lua 5.4"
- LUA="luajit 2.0"
- LUA="luajit 2.1"
branches:
only:
- master
- new
- lua54
before_install:
- pip install --user hererocks urllib3[secure] cpp-coveralls
- hererocks env --$LUA -rlatest # Use latest LuaRocks, install into 'env' directory.
- source env/bin/activate # Add directory with all installed binaries to PATH.
- curl -O https://raw.githubusercontent.com/luarocks/hererocks/master/hererocks.py
- python hererocks.py env --$LUA -rlatest
- source env/bin/activate
install:
# - sudo luarocks make $ROCKSPEC CFLAGS="-O2 -fPIC -ftest-coverage -fprofile-arcs" LIBFLAG="-shared --coverage"
+1 -1
View File
@@ -204,7 +204,7 @@ end
M.private.sortedPairs = sortedPairs
-- seed the random with a strongly varying seed
math.randomseed(os.clock()*1E11)
math.randomseed(math.floor(os.clock()*1E11))
local function randomizeTable( t )
-- randomize the item orders of the table t