Skip to content

Commit

Permalink
fix codecov missing some files coverage by jacococli
Browse files Browse the repository at this point in the history
Change-Id: Ica4ea713a9b74255c1bd4e5c0adbe233faeaceb2
  • Loading branch information
javeme committed Mar 8, 2021
1 parent 08a70a8 commit 5af4600
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion hugegraph-dist/src/assembly/travis/build-report.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,17 @@

set -ev

OPTION_CLASS_FILES_BACKEND="--classfiles hugegraph-$BACKEND/target/classes/com/baidu/hugegraph"
if [ "$BACKEND" == "memory" ]; then
# hugegraph-memory is the same as hugegraph-core
OPTION_CLASS_FILES_BACKEND=""
fi

cd hugegraph-test
mvn jacoco:dump@pull-test-data -Dapp.host=localhost -Dapp.port=36320 -Dskip.dump=false
cd ../
java -jar $TRAVIS_DIR/jacococli.jar report hugegraph-test/target/jacoco-it.exec \
--classfiles hugegraph-api/target/classes/com/baidu/hugegraph --xml report.xml
--classfiles hugegraph-dist/target/classes/com/baidu/hugegraph \
--classfiles hugegraph-api/target/classes/com/baidu/hugegraph \
--classfiles hugegraph-core/target/classes/com/baidu/hugegraph \
$OPTION_CLASS_FILES_BACKEND --xml report.xml

0 comments on commit 5af4600

Please sign in to comment.