-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (42 loc) · 1001 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
language: cpp
jobs:
include:
- dist: xenial
os: linux
compiler: g++
addons:
apt:
packages: ['lcov']
env: COVERAGE=1
- dist: xenial
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
before_install:
- git submodule update --init --recursive
before_script:
- export CXX=${COMPILER}
- cd ${TRAVIS_BUILD_DIR}
- mkdir Debug
- cd Debug
- conan install ..
- cmake .. -DCMAKE_BUILD_TYPE=Debug -Wdev -DENABLE_COVERAGE=ON
script:
- cd ${TRAVIS_BUILD_DIR}/Debug
- make -j 2
- make test
- |
if [[ "${TRAVIS_OS_NAME}" == "linux" ]] && [[ "${COVERAGE}" == "1" ]]; then
make gcov
make lcov
bash <(curl -s https://codecov.io/bash) -X gcov || echo "Codecov did not collect coverage reports"
fi