-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.travis.yml
40 lines (34 loc) · 1.07 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
language: python
sudo: false
env:
- LUA="lua 5.1" COMPAT=default
- LUA="lua 5.2" COMPAT=default
- LUA="lua 5.3" COMPAT=default
- LUA="lua 5.3" COMPAT=none
- LUA="lua 5.3" COMPAT=default CFLAGS="-DLUA_NOCVTN2S -DLUA_NOCVTS2N"
- LUA="luajit 2.0" COMPAT=none
- LUA="luajit 2.1" COMPAT=none
- LUA="luajit 2.1" COMPAT=all
before_install:
- pip install hererocks
- hererocks HERE --$LUA --compat $COMPAT --cflags="$CFLAGS" --no-readline --luarocks latest --verbose
- hererocks HERE --show
- source HERE/bin/activate
install:
- luarocks install luacheck
- luarocks install luacov-coveralls
script:
- luacheck --codes --std=max datafile.lua datafile
- export LUA_PATH=";;test/?.lua"
- lua test/test_script.lua
after_success:
- export LUA_PATH=";;test/?.lua"
- luarocks install test/test-datafile-scm-1.rockspec
- lua -lluacov test/test_script.lua
- luarocks remove test-datafile
- lua -lluacov test/test_script.lua
- luacov-coveralls -e /HERE/
notifications:
email:
on_success: change
on_failure: always