Revert "travis: attempt downgrading luacov to 0.9.1 to fix line stats"
[luajson.git] / .travis.yml
blob93e38cbbacde2f95b4d63746f8ae9425c61f5c28
1 # Pull in python for access to pip for hererocks
2 language: python
4 sudo: false
6 branches:
7     only:
8         - master
9         - next
10         - 1.2.x
11         - 1.1.x
12         - 1.0.x
14 env:
15     global:
16         - LUAROCKS=2.3.0
17     matrix:
18         - LPEG=1.0.0-1 LUA="luajit 2.1"
19         - LPEG=1.0.0-1 LUA="luajit 2.0"
20         - LPEG=1.0.0-1 LUA="lua 5.3"
21         - LPEG=1.0.0-1 LUA="lua 5.2"
22         - LPEG=1.0.0-1 LUA="lua 5.1"
23         - LPEG=0.12.2-1 LUA="luajit 2.1"
24         - LPEG=0.12.2-1 LUA="luajit 2.0"
25         - LPEG=0.12.2-1 LUA="lua 5.3"
26         - LPEG=0.12.2-1 LUA="lua 5.2"
27         - LPEG=0.12.2-1 LUA="lua 5.1"
28         - LPEG=0.10.2-1 LUA="luajit 2.0"
29         - LPEG=0.10.2-1 LUA="lua 5.2"
30         - LPEG=0.10.2-1 LUA="lua 5.1"
31         - LPEG=0.9-1 LUA="luajit 2.0"
32         - LPEG=0.9-1 LUA="lua 5.1"
33         - LPEG=0.8.1-1 LUA="luajit 2.0"
34         - LPEG=0.8.1-1 LUA="lua 5.1"
35         - LPEG=0.7-3 LUA="luajit 2.0"
36         - LPEG=0.7-3 LUA="lua 5.1"
38 branches:
39     only:
40         - master
42 before_install:
43     - pip install hererocks
44     - hererocks here -r $LUAROCKS --$LUA
45     - export PATH=$(pwd)/here/bin:$PATH
46     - luarocks install luacov
47     - luarocks install lunitx
48     - luarocks install luafilesystem
49     - luarocks install lpeg $LPEG
51 script:
52     - make LUA_BIN=lua LUNIT_BIN=lunit.sh LUA_INIT="require('luarocks.loader');require('luacov')" check
54 after_success:
55     # Rework the stats file and generate
56     - sed -e "s|../lua/|lua/|" < tests/luacov.stats.out > luacov.stats.out
57     - luacov
58     - bash <(curl -s https://codecov.io/bash)
60 notifications:
61     email:
62         on_success: change
63         on_failure: always