Skip to content

Commit

Permalink
update ci for Lua 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
starwing committed Apr 16, 2020
1 parent 804cd76 commit 33f576a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion luaunit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 33f576a

Please sign in to comment.