language: cpp

compiler:
  - gcc
  - clang

env:
  - BUILD_TYPE=Debug
  - BUILD_TYPE=Release

install:
  - sudo pip install cpp-coveralls --use-mirrors

before_script:
  - mkdir build && cd build
  - cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_TESTS=on -DBUILD_TESTS_WITH_EIGEN=on ..

script:
  - make && ctest -V

after_success:
  - if [ "${BUILD_TYPE}" != "Debug" ]; then coveralls --root .. -E ".*external.*" -E ".*CMakeFiles.*"; fi
language: cpp

compiler:
  - gcc
  - clang

env:
  - BUILD_TYPE=Debug
  - BUILD_TYPE=Release

install:
  - sudo pip install cpp-coveralls --use-mirrors

before_script:
  - mkdir build && cd build
  - cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_TESTS=on -DBUILD_TESTS_WITH_EIGEN=on ..

script:
  - make && ctest -V

after_success:
  - if [ "${BUILD_TYPE}" == "Debug" ]; then coveralls --root .. -E ".*external.*" -E ".*CMakeFiles.*" -E ".*test/.*.cpp.*"; fi
Fix error in BUILD_TYPE check to run Coveralls in Travis script.
Fix error in BUILD_TYPE check to run Coveralls in Travis script.
