-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
58 lines (48 loc) · 1.34 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
language: c
sudo: false
env:
global:
- LUA_CRYPTO=https://raw.github.com/moteus/luacrypto/master/rockspecs/luacrypto-git-1.rockspec
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
before_install:
- export CC=gcc
- pip install --user hererocks
- if [ "$LUA" == "lua 5.1" ]; then
hererocks here -r^ --$LUA;
else
hererocks here -r^ --$LUA --compat none;
fi
- export PATH=$PATH:$PWD/here/bin
install:
- luarocks show luasocket || luarocks install luasocket
- luarocks show lua-iconv || luarocks install lua-iconv
- luarocks show luacrypto || luarocks install $LUA_CRYPTO
- luarocks show lpeg || luarocks install lpeg
- luarocks make rockspecs/pop3-scm-0.rockspec
before_script:
- luarocks show luacov-coveralls || luarocks install luacov-coveralls
- luarocks show lunitx || luarocks install lunitx
script:
- cd test
- lunit.sh test-message.lua
after_success:
- luacov-coveralls
notifications:
email:
on_success: change
on_failure: always