diff --git a/hugegraph-dist/src/assembly/travis/build-report.sh b/hugegraph-dist/src/assembly/travis/build-report.sh index 02af1a9192..71f70cc016 100755 --- a/hugegraph-dist/src/assembly/travis/build-report.sh +++ b/hugegraph-dist/src/assembly/travis/build-report.sh @@ -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