Skip to content

Commit

Permalink
coverall (attempt #4)
Browse files Browse the repository at this point in the history
  • Loading branch information
artemkin committed Apr 11, 2014
1 parent 0e6d06b commit 8bd9da7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ before_install:
install:
# g++4.8.1
- if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8" COVERAGE=1; fi

# clang 3.4
- if [ "$CXX" == "clang++" ]; then sudo apt-get install --allow-unauthenticated -qq clang-3.4; fi
Expand All @@ -33,7 +33,7 @@ install:
- if [ "$CXX" == "clang++" ]; then cd /usr/lib && sudo ln -sf libc++.so.1.0 libc++.so; fi
- if [ "$CXX" == "clang++" ]; then sudo ln -sf libc++.so.1.0 libc++.so.1 && cd $cwd; fi

- if [ "$CXX" == "clang++" ]; then export CXX="clang++-3.4" CC="clang-3.4" COVERAGE=1; fi
- if [ "$CXX" == "clang++" ]; then export CXX="clang++-3.4" CC="clang-3.4"; fi

# install cpp-coveralls
# env: CFLAGS=--coverage CXXFLAGS=--coverage COVERAGE=1
Expand All @@ -45,5 +45,7 @@ script:
after_success:
# - if [ -n "$COVERAGE" ]; then coveralls --gcov gcov-4.8 --exclude CMakeFiles --exclude-pattern 'CMake[^\.]*\.c(?:pp)?' --exclude-pattern '[^\.]*\.h'; fi
- if [ -n "$COVERAGE" ]; then coveralls --gcov gcov-4.8; fi
- find . -iname "*.gcno"
- find . -iname "*.gcda"
- find . -iname "*.gcov"

0 comments on commit 8bd9da7

Please sign in to comment.