-
Notifications
You must be signed in to change notification settings - Fork 18
/
.travis.yml
66 lines (56 loc) · 1.48 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
language: c
sudo: false
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:
- export CC=gcc
- pip install --user hererocks
- hererocks here -r^ --$LUA;
- export PATH=$PATH:$PWD/here/bin
install:
- 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
- lua -v -e"print(require 'lzmq'.version(true))"
- lunit.sh test_file_writer.lua
- lunit.sh test_basic.lua
- lua test_zmq_finalizer.lua
- cd ..
- busted spec
notifications:
email:
on_success: change
on_failure: always