-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
62 lines (49 loc) · 1.31 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
language: c
python:
- "2.7"
sudo: false
addons:
apt:
packages:
- libzmq3-dev
env:
matrix:
- LUA="lua 5.1"
- LUA="lua 5.2"
- LUA="lua 5.3"
- LUA="luajit 2.0"
- LUA="luajit 2.1"
cache:
directories:
- here
- $HOME/.cache/pip
branches:
only:
- master
before_install:
- pip install --user hererocks
- hererocks here -r^ --$LUA
- export PATH=$PATH:$PWD/here/bin
- luarocks show lluv > /dev/null 2>&1 || bash .travis/setup_uv.sh
install:
- luarocks make rockspecs/lluv-gsmmodem-scm-0.rockspec UV_DIR=$TRAVIS_BUILD_DIR/libuv
before_script:
- luarocks show lunitx > /dev/null 2>&1 || luarocks install lunitx
- luarocks show cluacov > /dev/null 2>&1 || luarocks install cluacov
- luarocks show luacov-coveralls > /dev/null 2>&1 || luarocks install luacov-coveralls
- luarocks show luacheck > /dev/null 2>&1 || luarocks install luacheck
script:
- cd $TRAVIS_BUILD_DIR/test
- lunit.sh test_modem.lua
- lunit.sh test_commander.lua
- cd $TRAVIS_BUILD_DIR/src/lua/lluv && luacheck .
before_cache:
- cd $TRAVIS_BUILD_DIR/test && luacov-coveralls -v
- luarocks remove lluv-gsmmodem
- rm -f /home/travis/.cache/pip/log/debug.log
after_success:
# - luacov-coveralls -v
notifications:
email:
on_success: change
on_failure: always