-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
57 lines (44 loc) · 1.05 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
language: c
dist: xenial
sudo: true
python:
- "2.7"
addons:
apt:
packages:
- libjansson4
- libsnappy1v5
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:
- pip2 install --user cpp-coveralls
- pip2 install --user hererocks
- hererocks here -r^ --$LUA
- source here/bin/activate
- sudo dpkg -i ./deps/linux/libavro23_1.8.2-1_amd64.deb
- sudo dpkg -i ./deps/linux/libavro-dev_1.8.2-1_amd64.deb
install:
- luarocks make rockspecs/avro-scm-0.rockspec CFLAGS="-O2 -fPIC -ftest-coverage -fprofile-arcs" LIBFLAG="-shared --coverage"
before_script:
- luarocks show luacov-coveralls > /dev/null 2>&1 || luarocks install luacov-coveralls
script:
- lua -l luacov -l avro.test -v
after_success:
- coveralls -b . -r . -e here/include --dump c.report.json
- luacov-coveralls -j c.report.json -v
notifications:
email:
on_success: change
on_failure: always