/
.travis.yml
46 lines (38 loc) · 952 Bytes
/
.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
language: c
sudo: false
addons:
apt:
sources:
- kalakris-cmake
packages:
- cmake
env:
global:
- LUAROCKS=2.3.0
matrix:
- LUA=lua5.2
- LUA=lua5.3
- LUA=luajit2.0 # current head of 2.0 branch
- LUA=luajit2.1 # current head of 2.1 branch
branches:
only:
- master
before_install:
- source .ci/setenv_lua.sh
before_script:
- luarocks install lpeg
- luarocks install luv
- luarocks install busted
- luarocks install luacov
- luarocks install luacov-coveralls
script:
- LUA_INIT="require'luacov'" busted -v
- luarocks make lift-scm-0.rockspec
- cd $TRAVIS_BUILD_DIR/examples/tasks && lift
- cd $TRAVIS_BUILD_DIR/examples/downloads && lift
- cd $TRAVIS_BUILD_DIR/examples/lua-logo && lift
- cd $TRAVIS_BUILD_DIR/examples/build-lua && lift
- cd $TRAVIS_BUILD_DIR/examples/count-cmd && lift count lua $CI_HOME
- cd $TRAVIS_BUILD_DIR
after_success:
- luacov-coveralls -v