Skip to content

Commit 508d227

Browse files
committed
Travis CI: Fix integration with Coveralls by using new reporter tool
1 parent 17f0b82 commit 508d227

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.travis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,11 @@ before_install:
568568
wget -O - $AUTOMAKE_XZ_URL | tar xf - --xz --directory ~;
569569
(cd ~/automake-$AUTOMAKE_VER && ./configure --prefix=$GNUTOOLS_ROOT && make -j && make install);
570570
fi
571+
- if [[ "$REPORT_COVERAGE" == true ]]; then
572+
mkdir -p ../coveralls;
573+
wget -O - https://coveralls.io/coveralls-linux.tar.gz | tar xf - --gz --directory ../coveralls;
574+
export PATH=`pwd`/../coveralls:$PATH;
575+
fi
571576
- if [[ "$MAKEFILE_TARGET" == "dist"* ]]; then
572577
autoconf --version;
573578
automake --version;
@@ -583,7 +588,6 @@ install:
583588
- if [[ "$CMAKE_OPTIONS" == "" ]]; then
584589
./autogen.sh;
585590
fi
586-
- if [[ "$REPORT_COVERAGE" == true ]]; then gem install coveralls-lcov; fi
587591

588592
script:
589593
- if [[ "$CMAKE_OPTIONS" == "" && "$COVERITY_SCAN_BRANCH" != 1 ]]; then
@@ -628,7 +632,7 @@ after_success:
628632
lcov --capture --directory src --directory tests --output-file coverage.info &&
629633
lcov --remove coverage.info 'tests/*' --output-file coverage.info &&
630634
lcov --list coverage.info &&
631-
coveralls-lcov --repo-token=${COVERALLS_REPO_TOKEN} coverage.info;
635+
coveralls report coverage.info -r ${COVERALLS_REPO_TOKEN};
632636
fi
633637

634638
deploy:

0 commit comments

Comments
 (0)