From c5185d467f0f24e8089faa8b99ff38ae8714c255 Mon Sep 17 00:00:00 2001 From: Thomas Fussell Date: Tue, 25 Oct 2016 21:19:32 -0400 Subject: [PATCH] fix coveralls --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e3a78151..35c75ac4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -48,10 +48,12 @@ after_success: - if [ "$COMPILER" = "g++-4.9" ]; then sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 90 ; fi - if [ "$COMPILER" = "g++-4.9" ]; then sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 90 ; fi - if [ "$COMPILER" = "g++-4.9" ]; then sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-4.9 90 ; fi + - if [ "$COMPILER" = "g++-4.9" ]; then cd .. ; fi - if [ "$COMPILER" = "g++-4.9" ]; then rm -rf ./* ; fi - - if [ "$COMPILER" = "g++-4.9" ]; then cmake -G "Unix Makefiles" -D DEBUG=1 -D COVERAGE=1 -D SHARED=0 -D STATIC=1 -D WITH_TESTS=1 .. ; fi + - if [ "$COMPILER" = "g++-4.9" ]; then cmake -G "Unix Makefiles" -D DEBUG=1 -D COVERAGE=1 -D SHARED=0 -DCMAKE_BUILD_TYPE=Debug -D STATIC=1 .. ; fi - if [ "$COMPILER" = "g++-4.9" ]; then make ; fi - if [ "$COMPILER" = "g++-4.9" ]; then cd bin && ./xlnt.test ; fi + - if [ "$COMPILER" = "g++-4.9" ]; then cd ../ ; fi - if [ "$COMPILER" = "g++-4.9" ]; then export OLDWD=$(pwd) ; fi - if [ "$COMPILER" = "g++-4.9" ]; then cd "build/CMakeFiles/xlnt.static.dir$(pwd)" ; pwd ; fi - if [ "$COMPILER" = "g++-4.9" ]; then coveralls --root $OLDWD --verbose -x ".cpp" --gcov-options '\-p' --exclude include --exclude third-party --exclude tests --exclude samples --exclude benchmarks -E ".*/source/.*/tests/.*" -E ".*/build/tests/runner-autogen.cpp.*" -E ".*CompilerIdCXX/.*" ; fi