-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (44 loc) · 975 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
51
language: cpp
matrix:
include:
- os: linux
compiler: g++
- os: linux
compiler: clang
- os: osx
compiler: clang
install:
- |
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
pip install --user conan
conan user
else
HOMEBREW_NO_AUTO_UPDATE=1 brew install conan
fi
addons:
apt:
sources:
- kalakris-cmake
packages:
- cmake
- lcov
before_install:
- git submodule update --init --recursive
before_script:
- export CXX=${COMPILER}
- cd ${TRAVIS_BUILD_DIR}
- mkdir Debug
- cd Debug
- conan install ..
- cd ..
- cmake -H. -BDebug -DCMAKE_BUILD_TYPE=Debug -Wdev -DENABLE_COVERAGE=On
script:
- cd Debug
- make -j 2
- make test
- |
if [[ "${TRAVIS_OS_NAME}" == "linux" ]] && [[ "${COMPILER}" == "g++" ]]; then
make gcov
make lcov
bash <(curl -s https://codecov.io/bash) -X gcov || echo "Codecov did not collect coverage reports"
fi