-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (53 loc) · 1.35 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
language: cpp
sudo: false
dist: trusty
notifications:
email:
on_success: change
on_failure: always
matrix:
include:
- os: osx
osx_image: xcode10
compiler: clang
install:
- brew install llvm
env:
- COMPILER=clang++
- DEFINITION="-DCMAKE_PREFIX_PATH=/usr/local/opt/llvm/lib/cmake/llvm"
- os: linux
compiler: clang
addons:
apt:
sources: ["ubuntu-toolchain-r-test", "llvm-toolchain-trusty-7"]
packages: ["clang-7", "g++-7", "llvm-7-dev"]
env:
- COMPILER=clang++-7
- os: linux
compiler: gcc
addons:
apt:
sources: ["ubuntu-toolchain-r-test", "llvm-toolchain-trusty-7"]
packages: ["g++-8", "llvm-7-dev"]
env:
- COMPILER=g++-8
- os: linux
compiler: gcc
addons:
apt:
sources: ["ubuntu-toolchain-r-test", "llvm-toolchain-trusty-7"]
packages: ["g++-7", "llvm-7-dev"]
env:
- COMPILER=g++-7
- DEFINITION="-DTEST_COVERAGE=YES"
install:
- pip install --user cpp-coveralls
after_success:
- coveralls --gcov gcov-7 --gcov-options '\-lp' --root ${TRAVIS_BUILD_DIR} --build-root ${TRAVIS_BUILD_DIR}/build -e Examples -e test -e CLI --extension cpp --extension hpp -i src -i include
before_install:
- export CXX=${COMPILER}
script:
- cd build
- cmake -DCMAKE_BUILD_TYPE=Debug ${DEFINITION} ..
- make
- make check