Skip to content

Commit

Permalink
Update travis file.
Browse files Browse the repository at this point in the history
  • Loading branch information
moteus committed Sep 5, 2016
1 parent 17963c9 commit e8ada5e
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 176 deletions.
60 changes: 41 additions & 19 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,55 @@
language: c

env:
global:
- LUAROCKS=2.2.0
sudo: false

matrix:
- LUA=lua5.1
- LUA=lua5.2
- LUA=luajit
addons:
apt:
packages:
- openssl
- libzmq3
- libzmq3-dev

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"

cache:
directories:
- here
- $HOME/.cache/pip

branches:
only:
- master

before_install:
- bash .travis/setup_lua.sh
- sudo apt-get install libzmq3 libzmq3-dev
- export CC=gcc
- pip install --user hererocks
- hererocks here -r^ --$LUA;
- export PATH=$PATH:$PWD/here/bin

install:
- sudo luarocks install busted
- sudo luarocks install lunitx
- sudo luarocks install date
- sudo luarocks install luafilesystem
- sudo luarocks install lua-path
- sudo luarocks install lzmq
- sudo luarocks install lua-llthreads2
- sudo luarocks install lanes
- sudo luarocks make rockspecs/lua-log-scm-0.rockspec
- sudo luarocks install luasocket
- luarocks make rockspecs/lua-log-scm-0.rockspec

before_script:
- luarocks show busted || luarocks install busted
- luarocks show lunitx || luarocks install lunitx
- luarocks show luafilesystem || luarocks install luafilesystem
- luarocks show lua-path || luarocks install lua-path
- luarocks show lzmq || luarocks install lzmq
- luarocks show lua-llthreads2 || luarocks install lua-llthreads2
- luarocks show lanes || luarocks install lanes
- luarocks show luasocket || luarocks install luasocket
- luarocks show lpeg || luarocks install lpeg

script:
- cd test
Expand Down
15 changes: 0 additions & 15 deletions .travis/platform.sh

This file was deleted.

101 changes: 0 additions & 101 deletions .travis/setup_lua.sh

This file was deleted.

40 changes: 0 additions & 40 deletions .travis/setup_zmq.sh

This file was deleted.

2 changes: 1 addition & 1 deletion rockspecs/lua-log-scm-0.rockspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ description = {
}

dependencies = {
"lua >= 5.1",
"lua >= 5.1, < 5.4",
"date >= 2.0",
-- "lpeg >= 0.10.0",
-- "llthread >= 1.2",
Expand Down

0 comments on commit e8ada5e

Please sign in to comment.