Skip to content

Commit 57f4d6d

Browse files
committed
Reenable coveralls.
1 parent 9461624 commit 57f4d6d

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.travis.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,12 @@ before_install:
117117

118118
install:
119119
- |
120+
pwd
121+
HOME_FOLDER=$(pwd)/../
120122
if [ "${EXTRA_OPTS}" == "-DCoverage=On" -a "${TRAVIS_OS_NAME}" == "linux" ]; then
121-
export GCOV_PREFIX="$(pwd)/../ROOT-gcov/"
122-
export GCOV_PREFIX_STRIP=16
123+
export GCOV_PREFIX="$HOME_FOLDER/ROOT-gcov/"
124+
mkdir -p $GCOV_PREFIX
125+
#export GCOV_PREFIX_STRIP=16
123126
PATH=~/.local/bin:${PATH};
124127
pip install --user --upgrade pip;
125128
pip install --user cpp-coveralls;
@@ -128,8 +131,6 @@ install:
128131
script:
129132
- echo "Downloading Latest ROOT binaries."
130133
- |
131-
pwd
132-
HOME_FOLDER=$(pwd)/../
133134
# Go one level up from REPO_SLUG/rootbench
134135
cd $HOME_FOLDER
135136
mkdir root
@@ -155,16 +156,16 @@ script:
155156
${EXTRA_OPTS} ../rootbench
156157
- cmake --build .
157158
- ctest -V --output-on-failure
158-
- #find $GCOV_PREFIX
159+
- find $GCOV_PREFIX
159160
- #find $HOME_FOLDER
160161

161162
after_success:
162163

163164
- |
164165
# FIXME: Figure out the right coveralls arguments to send the reports.
165-
#if [ "${EXTRA_OPTS}" == "-DCoverage=On" -a "${TRAVIS_OS_NAME}" == "linux" ]; then
166-
# coveralls --exclude /usr/ --gcov-options '\-lp' --root $HOME_FOLDER/build --build-root $ROOT_LOCATION;
167-
#fi
166+
if [ "${EXTRA_OPTS}" == "-DCoverage=On" -a "${TRAVIS_OS_NAME}" == "linux" ]; then
167+
coveralls --verbose --gcov-options '\-lp' --root $HOME_FOLDER --build-root $HOME_FOLDER;
168+
fi
168169
169170
on_failure:
170171
-|

0 commit comments

Comments
 (0)