-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
71 lines (67 loc) · 2.27 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
63
64
65
66
67
68
69
70
71
dist: xenial
language: cpp
compiler:
- clang
- gcc
os:
- linux
env:
global:
addons:
apt:
update: true
sources:
- ubuntu-toolchain-r-test
packages:
- "pkg-config"
- "python3"
- "python3-dev"
- "python3-yaml"
- "python3-wheel"
- "python3-setuptools"
- "python3-cryptography"
- "python3-pip"
- gcc-7
- g++-7
- cmake
- doxygen
- libc6-dbg # needed by Valgrind
- valgrind
- lcov
- curl
coverity_scan:
project:
name: "abbyssoul/libtribe"
description: "Group Membership and Failure Detection using gossip style protocol"
notification_email: abbyssoul@gmail.com
build_command_prepend: "./configure --enable-coverage --disable-sanitizer"
build_command: make coverage_report
branch_pattern: coverity_scan
before_install:
- echo -n | openssl s_client -connect https://scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
- sudo -H pip3 install --upgrade pip
- sudo -H pip3 install cpplint cpp-coveralls
- sudo -H pip3 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
- echo $CXX
- $CXX --version
- ld --version
- conan --version
- conan profile new default --detect
- if [ "${TRAVIS_COMPILER}" != "clang" ]; then conan profile update settings.compiler.libcxx=libstdc++11 default; fi
- 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
# Disabled valgrind build as std::random_device causes failure on Valgrind-3.11.0 avaliable in travisCI
#- if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then ./configure --disable-sanitizer --enable-debug && make clean && make verify ; fi
after_success:
- make clean && make 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