-
Notifications
You must be signed in to change notification settings - Fork 19
/
.travis.yml
64 lines (54 loc) · 1.45 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
language: c
sudo: false
matrix:
include:
- env: LUA="lua 5.1"
os: osx
- env: LUA="lua 5.1"
os: linux
- env: LUA="lua 5.2"
os: linux
- env: LUA="lua 5.3"
os: linux
- env: LUA="lua 5.4"
os: linux
- env: LUA="luajit 2.0"
os: linux
- env: LUA="luajit 2.1"
os: linux
- env: LUA="luajit 2.1"
os: osx
cache:
directories:
- here
- $HOME/.cache/pip
branches:
only:
- master
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH=$PATH:~/Library/Python/2.7/bin/; fi
- pip install --user cpp-coveralls
- pip install --user hererocks
- hererocks here -r^ --$LUA
- source here/bin/activate
- if [ "${LUA:0:6}" == "luajit" ]; then
luarocks show ljsyscall > /dev/null 2>&1 || luarocks install ljsyscall;
fi
- luarocks show luafilesystem > /dev/null 2>&1 || luarocks install luafilesystem
install:
- luarocks make rockspecs/lua-path-scm-0.rockspec
before_script:
- luarocks show luacov > /dev/null 2>&1 || luarocks install luacov
- luarocks show lunitx > /dev/null 2>&1 || luarocks install lunitx
script:
- cd test
- lunit.sh run.lua
- lua -lluacov test_lfs.lua
after_success:
- luarocks show lua-curl > /dev/null 2>&1 || luarocks install lua-curl
- luarocks show luacov-coveralls > /dev/null 2>&1 || luarocks install luacov-coveralls
- luacov-coveralls
notifications:
email:
on_success: change
on_failure: always