Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/OpenLightingProject/ola i…
Browse files Browse the repository at this point in the history
…nto trivial-fixes
  • Loading branch information
peternewman committed Nov 24, 2014
2 parents ab0611b + f1af4e2 commit 2a0a63b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
*.dirstamp
*.gcda
*.gcno
*.gcov
*.la
*.lo
*.log
Expand Down
3 changes: 3 additions & 0 deletions .travis-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ elif [[ $TASK = 'doxygen' ]]; then
else
echo "Found $warnings doxygen warnings"
fi;
elif [[ $TASK = 'coverage' ]]; then
# Compile with coverage for coveralls
autoreconf -i && ./configure --enable-gcov && make && make check
else
# Otherwise compile and check as normal
autoreconf -i && ./configure && make distcheck
Expand Down
13 changes: 11 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,34 @@ matrix:
env: TASK='compile'
- compiler: gcc
env: TASK='compile'
- compiler: gcc
env: TASK='coverage'
- env: TASK='doxygen'
- env: TASK='lint'
- env: TASK='check-licences'
allow_failures:
- compiler: gcc
env: TASK='coverage'

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++" ]; then sudo rm /usr/bin/g++; sudo rm /usr/bin/gcc; fi
- 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 -qq cpp-coveralls; fi
#Install doxygen if required
- if [ "$TASK" = "doxygen" ]; then sudo apt-get install -qq doxygen; fi

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

notifications:
irc:
channels:
Expand Down
5 changes: 3 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -463,9 +463,10 @@ AM_CONDITIONAL([FATAL_WARNINGS], [test "x$enable_fatal_warnings" != xno])
AC_ARG_ENABLE(
[gcov],
[AS_HELP_STRING([--enable-gcov], [Turn on code coverage analysis tools])])
AS_IF([test "x$enable_gov" = xyes],
AS_IF([test "x$enable_gcov" = xyes],
[CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
CXXFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"])
CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
LIBS="$LIBS -lgcov"])

# Enable HTTP support. This requires libmicrohttpd.
AC_ARG_ENABLE(
Expand Down

0 comments on commit 2a0a63b

Please sign in to comment.