-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (55 loc) · 1.62 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
language: cpp
compiler:
- clang
- gcc
os:
- linux
addons:
apt:
update: true
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-6.0
packages:
- clang-6.0
- gcc-7
- g++-7
- binutils-2.26
- cmake
- doxygen
- python-pip
- libc6-dbg # needed by Valgrind
- valgrind
- ggcov
- lcov
- curl
coverity_scan:
project:
name: "abbyssoul/libcadence"
description: "IPC library"
notification_email: [email protected]
build_command: make
branch_pattern: coverity_scan
before_install:
- sudo pip install cpplint cpp-coveralls
- sudo pip install conan --upgrade
- gem install coveralls-lcov
install:
- gcov --version
- lcov --version
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 90 --slave /usr/bin/g++ g++ /usr/bin/g++-7
- sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-7 90
- if [ "$CXX" = "clang++" ]; then export CXX="clang++-6.0" CC="clang-6.0"; fi
- echo $CXX
- $CXX --version
- ld --version
- conan remote add abbyssoul https://api.bintray.com/conan/abbyssoul/public-conan
script:
- ./configure --enable-sanitizer
- if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then make clean codecheck; fi
- if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then make test; fi
- if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then ./configure --disable-sanitizer --enable-debug && make clean && make verify ; fi
after_success:
- make clean coverage_report
- bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"
- coveralls-lcov --repo-token ${COVERALLS_TOKEN} coverage.info # uploads to coveralls