-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
43 lines (36 loc) · 1.06 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
language: c
os: linux
compiler:
- gcc
addons:
apt:
packages:
- cpanminus
- lcov
- libjson-c-dev
install:
- gem install coveralls-lcov
- git clone https://github.com/nginx/nginx.git ../nginx
- git clone https://github.com/nginx/nginx-tests.git ../nginx-tests
- rm -f ../nginx-tests/*.t
- cp ./t/* ../nginx-tests/
before_script:
- lcov --directory ../nginx --zerocounters
script:
- ls -ltra
- cd ../nginx
- ls -ltra
- ./auto/configure --prefix=/tmp/nginx --without-http --with-stream --with-stream_realip_module --add-module=../ngx_stream_ipdb_module
--with-cc-opt="-Wno-unused-result -fprofile-arcs -ftest-coverage" --with-ld-opt="-lgcov"
- make -j
- make install
- cd ../nginx-tests
- ls -ltra
- TEST_NGINX_BINARY=/tmp/nginx/sbin/nginx prove .
- cd ../nginx
- sudo lcov --compat-libtool --directory ./objs/addon/ngx_stream_ipdb_module/ --capture
--output-file ./coverage.info --base-directory .
- ls -ltra
after_success:
- coveralls-lcov ./coverage.info
- genhtml -s -o /tmp/ipdb_html coverage.info