forked from clearlinux/cve-check-tool
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
50 lines (39 loc) · 1013 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
46
47
48
49
50
sudo: required
dist: trusty
branches:
only:
- master
compiler:
- gcc
os:
- linux
before_script:
./autogen.sh CC="gcc-5"
language: c
addons:
apt:
sources:
- llvm-toolchain-precise-3.8
- llvm-toolchain-precise
- ubuntu-toolchain-r-test
packages:
- check
- clang-3.8
- clang-format-3.8
- gcc-5
- libblkid-dev
- lcov
- llvm-3.8
- valgrind
before_install:
- gem install coveralls-lcov
script:
- lcov --version | grep "1.10"
- export CC="gcc-5"
- ./configure --enable-coverage && make && make check && make distcheck
- clang-format-3.8 -i $(find . -name '*.[ch]') && git diff --exit-code
after_success:
- cd ${TRAVIS_BUILD_DIR}
- lcov --compat-libtool --directory . --capture --output-file coverage.info
- lcov --remove coverage.info 'tests/*' '/usr/*' --output-file coverage.info
- coveralls-lcov coverage.info