mirror of
https://github.com/boostorg/histogram.git
synced 2025-05-11 21:24:14 +00:00
trying to get coverage in travis
This commit is contained in:
parent
4ace3158c2
commit
d222ab74e8
@ -30,13 +30,8 @@ before_install:
|
||||
# Install packages
|
||||
install:
|
||||
- conda install --yes numpy nose
|
||||
# Coverage packages are on my binstar channel
|
||||
# - conda install --yes -c dan_blanchard python-coveralls nose-cov
|
||||
- pip install --user cpp-coveralls
|
||||
|
||||
# before_script:
|
||||
# - export PATH=$HOME/.local/bin:$PATH
|
||||
# - pip install numpy --user `whoami`
|
||||
# - conda install --yes -c dan_blanchard python-coveralls nose-cov
|
||||
|
||||
script:
|
||||
cd build && cmake . -DCOVERAGE=ON && make -j2 && make test
|
||||
|
@ -28,14 +28,17 @@ else()
|
||||
add_definitions(-O3 -fomit-frame-pointer -mtune=generic)
|
||||
endif()
|
||||
|
||||
if(COVERAGE)
|
||||
message(STATUS "Coverage build enabled")
|
||||
add_definitions(-coverage)
|
||||
endif()
|
||||
|
||||
include_directories(../include ${Boost_INCLUDE_DIRS})
|
||||
set(LIBRARIES stdc++ m ${Boost_LIBRARIES})
|
||||
|
||||
if(COVERAGE)
|
||||
message(STATUS "Coverage build enabled")
|
||||
add_definitions(--coverage)
|
||||
set(CMAKE_EXE_LINKER_FLAGS --coverage)
|
||||
set(CMAKE_SHARED_LINKER_FLAGS --coverage)
|
||||
# set(LIBRARIES ${LIBRARIES} gcov)
|
||||
endif()
|
||||
|
||||
# core library
|
||||
add_library(boost_histogram SHARED
|
||||
../src/axis.cpp
|
||||
|
Loading…
x
Reference in New Issue
Block a user