forked from stefanocasazza/ULib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (54 loc) · 1.95 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
dist: trusty
language: cpp
matrix:
include:
- compiler: gcc
addons:
apt:
sources:
- llvm-toolchain-precise-3.7
- ubuntu-toolchain-r-test
packages:
- g++-5-multilib
- gcc-5-multilib
- compiler: clang
addons:
apt:
sources:
- llvm-toolchain-precise-3.7
- ubuntu-toolchain-r-test
packages:
- clang-3.7
#before_install:
# - sudo pip install cpp-coveralls
install:
- if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi
- if [ "$CXX" = "clang++" ]; then export CXX="clang++-3.7" CC="clang-3.7"; fi
# - cd ${TRAVIS_BUILD_DIR}
# - wget http://ftp.de.debian.org/debian/pool/main/l/lcov/lcov_1.11.orig.tar.gz
# - tar xf lcov_1.11.orig.tar.gz
# - sudo make -C lcov-1.11/ install
# - gem install coveralls-lcov
env:
global:
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created via the "travis encrypt" command using the project repo's public key
- secure: "B6Qfsm3mx0yUMQFcvQTbW3SliAbrqUwH+jZDj3bQipL9M0UQkXNptmsl33mHMQfi14MGEIspfeYPk8TKPCCJ4Ia7yjE1T/5V01qB8WeJlzUlMFunuhy8G7QJmwS7vPsd0t69563/PMKq4JLEOLGhSwhZPN83pV4G70ctrxn/aG4="
addons:
coverity_scan:
project:
name: "stefanocasazza/ULib"
description: "C++ application development framework"
notification_email: [email protected]
build_command_prepend: "CPPFLAGS=-DU_COVERITY_FALSE_POSITIVE ./configure"
build_command: "make -j2"
branch_pattern: master
#before_script:
# - cd ${TRAVIS_BUILD_DIR}
# - lcov --directory . --zerocounters
script:
- cd ${TRAVIS_BUILD_DIR}
- ./configure && make -j2 && make test
# - CFLAGS=-O0 CXXFLAGS=-O0 CPPFLAGS=-O0 ./configure --enable-coverage disable-final && make -j2 && make test && make coverage
#after_success:
# - coveralls-lcov --repo-token Vtsx16cD2EzEuWvFPZ63O8njddWMarTRB coverage.info
# - coveralls --exclude lib --exclude tests -n -t Vtsx16cD2EzEuWvFPZ63O8njddWMarTRB