Skip to content

Commit

Permalink
Try and fix coveralls still
Browse files Browse the repository at this point in the history
  • Loading branch information
peternewman committed Nov 23, 2014
1 parent 0caf6fb commit 4cc0065
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,20 @@ cache: apt
before_install:
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get update -qq
- sudo apt-cache search microhttpd
- sudo apt-get install -qq protobuf-compiler libprotobuf-lite7 libprotobuf-dev libprotoc-dev bison flex libftdi-dev libftdi1 libusb-1.0-0-dev liblo-dev libavahi-client-dev uuid-dev libcppunit-dev libcppunit-1.12-1 libncurses5-dev python-protobuf libmicrohttpd-dev
#g++-4.9 won't work on Ubuntu 12.04 that Travis currently uses
- 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
#Remove the old g++/gcc to ensure we're using the latest ones
- if [ "$CXX" = "g++-4.8" ]; then sudo rm /usr/bin/g++; sudo rm /usr/bin/gcc; fi
#Install coveralls if required
- if [ "$TASK" = "coverage" ]; then sudo pip install cpp-coveralls; fi
- if [ "$TASK" = "coverage" ]; then sudo pip install -qq cpp-coveralls; fi
#Install doxygen if required
- if [ "$TASK" = "doxygen" ]; then sudo apt-get install -qq doxygen; fi
- ls -al /usr/bin/*-4.8
- ls -al /usr/bin/gcov*
- which gcov
- pwd

after_success:
- if [ "$TASK" = "coverage" ]; then coveralls --gcov /usr/bin/gcov-4.8 -E 'Test.cpp$' --gcov-options '\-lp' > /dev/null; fi
- if [ "$TASK" = "coverage" ]; then pwd; coveralls --gcov /usr/bin/gcov-4.8 -b . -E 'Test.cpp$' --gcov-options '\-lp' > /dev/null; pwd; fi

notifications:
irc:
Expand Down

0 comments on commit 4cc0065

Please sign in to comment.