Merge pull request #341 from arvidn/codecov-patch

post test coverage results sooner
This commit is contained in:
Arvid Norberg 2015-12-19 23:07:11 -05:00
commit 21b004b1e7
2 changed files with 5 additions and 7 deletions

View File

@ -53,12 +53,6 @@ before_install:
fi fi
- 'echo "using toolset: " ${toolset}' - 'echo "using toolset: " ${toolset}'
after_success:
- if [[ $TRAVIS_OS_NAME == "linux" && $coverage == "1" ]]; then
cd test;
codecov --root .. --gcov-exec gcov-4.8;
fi
install: install:
- g++-4.8 --version - g++-4.8 --version
- 'echo "using gcc : cpp11 : ccache g++-4.8 : <cflags>-std=c11 <cxxflags>-std=c++11 ;" > ~/user-config.jam' - 'echo "using gcc : cpp11 : ccache g++-4.8 : <cflags>-std=c11 <cxxflags>-std=c++11 ;" > ~/user-config.jam'
@ -76,6 +70,10 @@ install:
script: script:
- cd test - cd test
- bjam --hash -j3 warnings-as-errors=on variant=$variant -l900 $coverage_toolset $target - bjam --hash -j3 warnings-as-errors=on variant=$variant -l900 $coverage_toolset $target
# if we're building with code coverage, report it as soon as possible
- if [[ $TRAVIS_OS_NAME == "linux" && $coverage == "1" ]]; then
codecov --root .. --gcov-exec gcov-4.8;
fi
- cd ../examples - cd ../examples
- bjam --hash -j3 warnings-as-errors=on variant=$variant $toolset link=shared - bjam --hash -j3 warnings-as-errors=on variant=$variant $toolset link=shared

View File

@ -8,7 +8,7 @@ libtorrent
:target: https://ci.appveyor.com/project/arvidn/libtorrent/branch/master :target: https://ci.appveyor.com/project/arvidn/libtorrent/branch/master
.. image:: https://codecov.io/github/arvidn/libtorrent/coverage.svg?branch=master .. image:: https://codecov.io/github/arvidn/libtorrent/coverage.svg?branch=master
:target: https://codecov.io/github/arvidn/libtorrent?branch=master :target: https://codecov.io/github/arvidn/libtorrent?branch=master&view=all#sort=missing&dir=desc
.. image:: https://www.openhub.net/p/rasterbar-libtorrent/widgets/project_thin_badge.gif .. image:: https://www.openhub.net/p/rasterbar-libtorrent/widgets/project_thin_badge.gif
:target: https://www.openhub.net/p/rasterbar-libtorrent?ref=sample :target: https://www.openhub.net/p/rasterbar-libtorrent?ref=sample