-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy path.travis.yml
64 lines (56 loc) · 1.63 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
# Pull in python for access to pip for hererocks
language: python
sudo: false
branches:
only:
- master
- next
- 1.2.x
- 1.1.x
- 1.0.x
env:
global:
- LUAROCKS=2.4.2
matrix:
- LPEG=1.0.1-1 LUA="luajit 2.1"
- LPEG=1.0.1-1 LUA="luajit 2.0"
- LPEG=1.0.1-1 LUA="lua 5.3"
- LPEG=1.0.1-1 LUA="lua 5.2"
- LPEG=1.0.1-1 LUA="lua 5.1"
- LPEG=0.12.2-1 LUA="luajit 2.1"
- LPEG=0.12.2-1 LUA="luajit 2.0"
- LPEG=0.12.2-1 LUA="lua 5.3"
- LPEG=0.12.2-1 LUA="lua 5.2"
- LPEG=0.12.2-1 LUA="lua 5.1"
- LPEG=0.10.2-1 LUA="luajit 2.0"
- LPEG=0.10.2-1 LUA="lua 5.2"
- LPEG=0.10.2-1 LUA="lua 5.1"
- LPEG=0.9-1 LUA="luajit 2.0"
- LPEG=0.9-1 LUA="lua 5.1"
- LPEG=0.8.1-1 LUA="luajit 2.0"
- LPEG=0.8.1-1 LUA="lua 5.1"
- LPEG=0.7-3 LUA="luajit 2.0"
- LPEG=0.7-3 LUA="lua 5.1"
branches:
only:
- master
- /^feature[/]/
before_install:
- pip install hererocks
- hererocks here -r $LUAROCKS --$LUA
- export PATH=$(pwd)/here/bin:$PATH
- luarocks install luacov
- luarocks install lunitx
- luarocks install luafilesystem
- luarocks install lpeg $LPEG
script:
- make LUA_BIN=lua LUNIT_BIN=lunit.sh LUA_INIT="require('luarocks.loader');require('luacov')" check
after_success:
# Rework the stats file and generate
- sed -e "s|../lua/|lua/|" < tests/luacov.stats.out > luacov.stats.out
- luacov
- bash <(curl -s https://codecov.io/bash)
notifications:
email:
on_success: change
on_failure: always