Skip to content
This repository has been archived by the owner on Oct 10, 2019. It is now read-only.

Commit

Permalink
Report coverage to Coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
Minoru committed May 17, 2016
1 parent 4fd5e2e commit 3dbe975
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 22 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ doc/newsbeuter.1
doc/podbeuter-cfgcmds.txt
doc/podbeuter.1
doc/xhtml/*
*.gcov
*.gcno
*.gcda
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,7 @@ script:
- cd ${TRAVIS_BUILD_DIR}
- make PROFILE=1 all test
- cd test && ./test

after_success:
- cd ${TRAVIS_BUILD_DIR}
- ./submit-to-coveralls.sh
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ clean-doc:
clean: clean-newsbeuter clean-podbeuter clean-libbeuter clean-libfilter clean-doc clean-librsspp
$(RM) $(STFLHDRS) xlicense.h

distclean: clean clean-mo test-clean
distclean: clean clean-mo test-clean profclean
$(RM) core *.core core.* config.mk

doc: doc/xhtml/newsbeuter.html doc/xhtml/faq.html doc/newsbeuter.1 doc/podbeuter.1
Expand Down Expand Up @@ -243,7 +243,7 @@ test-clean:
$(RM) test/test test/*.o

profclean:
find . -name '*.gc*' -type f | xargs $(RM)
find . -name '*.gc*' -type f -print0 | xargs -0 $(RM) --
$(RM) app*.info

# miscellaneous stuff
Expand Down
8 changes: 8 additions & 0 deletions submit-to-coveralls.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

if [ "$TRAVIS_OS_NAME" = "osx" ]
then
eval "$(pyenv init -)"
fi

coveralls --exclude 'test' --exclude 'usr' --gcov-options '\-lp'
20 changes: 0 additions & 20 deletions test/lcov-run-all.sh

This file was deleted.

9 changes: 9 additions & 0 deletions travis-get-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ case $TRAVIS_OS_NAME in
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -qq libsqlite3-dev libcurl4-openssl-dev libxml2-dev libstfl-dev libjson-c-dev libncursesw5-dev bc asciidoc
pip install --user cpp-coveralls
;;

"osx")
Expand All @@ -16,5 +17,13 @@ case $TRAVIS_OS_NAME in
brew install "libstfl"
brew outdated "json-c" || brew upgrade "json-c"
brew install "asciidoc"

brew install "pyenv"
eval "$(pyenv init -)"
pyenv install 2.7.6
pyenv global 2.7.6
pyenv rehash
pip install cpp-coveralls
pyenv rehash
;;
esac

0 comments on commit 3dbe975

Please sign in to comment.