forked from mkurdej/bft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
51 lines (43 loc) · 1.82 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
# Copyright (c) 2011-2014
# Marek Kurdej
#
# Distributed under the Boost Software License, Version 1.0.
# See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt
language: cpp
os:
- linux
# - osx
compiler:
- gcc
- clang
env:
- BUILD_TYPE=Release
# do not build with gcc on OS X
matrix:
exclude:
- compiler: gcc
os: osx
# DEPENDENCIES
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq libboost-serialization1.48-dev libboost-test1.48-dev opencl-headers lcov
# fglrx=2:8.960-0ubuntu1
#- sudo apt-get install -qq opencl-headers libboost-chrono1.48-dev libboost-date-time1.48-dev libboost-test1.48-dev libboost-system1.48-dev libboost-filesystem1.48-dev libboost-timer1.48-dev libboost-program-options1.48-dev python-yaml lcov libopencv-dev
#- sudo apt-get install -qq fglrx=2:8.960-0ubuntu1 opencl-headers libboost-chrono1.48-dev libboost-date-time1.48-dev libboost-test1.48-dev libboost-system1.48-dev libboost-filesystem1.48-dev libboost-timer1.48-dev libboost-program-options1.48-dev python-yaml lcov libopencv-dev
- gem install coveralls-lcov
- clang -v
- gcc -v
# BUILD in ./build
script:
- mkdir -p build
- cd build
- cmake -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_C_COMPILER=${CC} -DCMAKE_CXX_COMPILER=${CXX} -DBoost_BFT_BUILD_TESTS=ON -DBoost_BFT_BUILD_TESTS_HEADERS=ON -DBoost_BFT_ENABLE_COVERAGE=ON -DCMAKE_CXX_FLAGS="-Wall -pedantic -Wno-variadic-macros -Wno-long-long -Wno-shadow" ..
# -DBoost_BFT_BUILD_EXAMPLES=ON
- make -j8
- ctest --output-on-failure
# COVERAGE
after_success:
- lcov --directory test --base-directory ../include/boost/bft/ --capture --output-file coverage.info
- lcov --remove coverage.info '/usr*' -o coverage.info
- cd .. && coveralls-lcov build/coverage.info