forked from matheuswhite/backpack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
68 lines (61 loc) · 1.49 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
language: cpp
sudo: required
branches:
only:
- main
matrix:
include:
- os: linux
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
- cmake
- lcov
cache:
apt: true
before_script:
- mkdir -p build && cd build
- cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=g++-5 -DBUILD_TESTS=ON -DENABLE_COVERAGE=ON -DGEN_DOCS=OFF ..
script:
- make -j2
- ctest --output-on-failure
- make coverage
after_success:
- bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"
- os: linux
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
- cmake
cache:
apt: true
env:
- MATRIX_EVAL="COMPILER=g++-5 && BUILD_TYPE=Release"
- os: osx
osx_image: xcode9.2
compiler: clang
env:
- MATRIX_EVAL="COMPILER=clang++ && BUILD_TYPE=Debug"
- os: osx
osx_image: xcode9.2
compiler: clang
env:
- MATRIX_EVAL="COMPILER=clang++ && BUILD_TYPE=Release"
cache:
apt: true
before_install:
- eval "${MATRIX_EVAL}"
before_script:
- mkdir -p build && cd build
- cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_CXX_COMPILER=$COMPILER -DBUILD_TESTS=ON -DGEN_DOCS=OFF ..
script:
- make -j2
- ctest --output-on-failure