forked from 3Hren/blackhole
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (38 loc) · 876 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
sudo: required
dist: trusty
language: cpp
matrix:
include:
- compiler: gcc
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- lcov
env:
- BUILD_TYPE=Coverage
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
env: COMPILER=g++-4.9
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y libboost-dev libboost-thread-dev libboost-system-dev
script:
- mkdir -p build
- cd build
- cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DENABLE_TESTING=ON ..
- |
if [[ "${BUILD_TYPE}" == "Coverage" ]]; then
make coverage;
bash <(curl -s https://codecov.io/bash);
else
make;
./blackhole-tests;
fi