-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy path.travis.yml
More file actions
54 lines (45 loc) · 1.34 KB
/
.travis.yml
File metadata and controls
54 lines (45 loc) · 1.34 KB
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
language: python # Need python environment for pip
sudo: false # Use container-based infrastructure
env:
- LUA="lua=5.1"
- LUA="lua=5.2"
# #- LUA="lua=5.3" (luacrypto does not support Lua 5.3 yet)
- LUA="luajit=2.0"
- LUA="luajit=2.1"
matrix:
include:
- env: LUA="lua=5.1" LUANODE=true
addons:
apt:
packages:
- libboost-dev
- libboost-system-dev
- libboost-date-time-dev
- libboost-thread-dev
before_install:
- pip install hererocks
- hererocks lua_install --luarocks ^ --$LUA
- export PATH=$PATH:$PWD/lua_install/bin
- |
if [ "$LUANODE" == "true" ]; then
export LUA_DIR="$PWD/lua_install"
bash .travis/setup_luanode.sh
fi
- luarocks install luacov
- luarocks install luacov-coveralls
install:
- luarocks install lunitx
- luarocks install luacrypto
- luarocks install luasocket 3.0rc1-2
#- luarocks install luasocket --only-server=http://luarocks.org/repositories/rocks-scm
- luarocks install lbase64
- luarocks install luasec --server=https://luarocks.org/manifests/ignacio OPENSSL_LIBDIR=/usr/lib/x86_64-linux-gnu
script:
- |
if [ "$LUANODE" = "true" ]; then
cd unittest/luanode && ./run.sh;
else
cd unittest && lua -lluacov run.lua;
fi
after_success:
- luacov-coveralls -v -r .. -e ../lua_install