language: c
compiler:
  - gcc
  - clang

addons:
  apt:
    sources:
      - kalakris-cmake
    packages:
      - gfortran
      - cmake
      - libopenmpi-dev
      - openmpi-bin
      - binutils-dev

before_install:
  - pip install --user codecov


script:
  - mkdir build2 && cd build2
  - cmake .. -DENABLE_COVERAGE=On && make && ctest --output-on-failure
  - make gcov

after_success:
  - codecov

language: c
compiler:
  - gcc
  - clang

addons:
  apt:
    sources:
      - kalakris-cmake
    packages:
      - gfortran
      - cmake
      - libopenmpi-dev
      - openmpi-bin
      - binutils-dev

before_install:
  - pip install --user codecov


script:
  - mkdir build2 && cd build2
  - cmake .. -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_BUILD_TYPE=Debug -DENABLE_COVERAGE=On && make install && ctest --output-on-failure

after_success:
  - make gcov
  - codecov

Build type is DEBUG now.
Build type is DEBUG now.

* Switched CMAKE_BUILD_TYPE to Debug.
* make gcov will only be executed, if build did not fail.
