Skip to content

Commit

Permalink
setting up for codecov.io
Browse files Browse the repository at this point in the history
  • Loading branch information
patflick committed Oct 5, 2015
1 parent a957a83 commit 29affaf
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ env:

before_install:
- sh ./conf/travis-install-mpi.sh $MPI
- pip install --user codecov

install:
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
Expand All @@ -31,11 +32,14 @@ before_script:
- $CXX --version
- mkdir build
- cd build
- cmake ../
- cmake -DENABLE_COVERAGE ../

script:
- make
- mpiexec -np 1 ./bin/test-all
- mpiexec -np 4 ./bin/test-all
#- mpiexec -np 13 ./bin/test-all # fails for openmpi!! MPI_Allgather()
- mpiexec -np 8 ./bin/test-all

after_success:
- codecov
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ if(DOXYGEN_FOUND)
)
endif(DOXYGEN_FOUND)

OPTION(ENABLE_COVERAGE "Enable code coverage reporting" OFF)

if(ENABLE_COVERAGE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage")
endif(ENABLE_COVERAGE)

###### Executable and Libraries
# Save libs and executables in the same place
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin CACHE PATH "Output directory for applications" )
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
mxx
===
[![Build Status](https://travis-ci.org/patflick/mxx.svg?branch=master)](https://travis-ci.org/patflick/mxx)
![Coverage
Status](https://coveralls.io/repos/patflick/mxx/badge.svg?branch=master&service=github)](https://coveralls.io/github/patflick/mxx?branch=master)

`mxx` is a `C++`/`C++11` template library for `MPI`. The main goal of this
library is to provide two things:
Expand Down

0 comments on commit 29affaf

Please sign in to comment.