File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ test_script:
3030 - scripts/integration_test
3131
3232after_test :
33- - ./scripts/codecov
33+ - ./scripts/codecov -s
3434 # remove self maven install
3535 - rm -rf $HOME/.m2/repository/com/alibaba/dns-cache-manipulator*
3636 # remove maven install file
Original file line number Diff line number Diff line change @@ -21,12 +21,12 @@ cd ..
2121export DCM_AGENT_SUPRESS_EXCEPTION_STACK=true
2222
2323prepare_jdks::switch_to_jdk 11
24- jvb::mvn_cmd -Pgen-code-cov clean test
24+
25+ if [ " ${1:- } " = " -s" ]; then
26+ jvb::mvn_cmd -Pgen-code-cov jacoco:prepare-agent surefire:test jacoco:report
27+ else
28+ jvb::mvn_cmd -Pgen-code-cov clean test
29+ fi
2530
2631prepare_jdks::switch_to_jdk 8
27- # use -Dmaven.main.skip option fix below problem of jacoco-maven-plugin:report :
28- #
29- # [WARNING] Classes in bundle 'Java Dns Cache Manipulator(DCM) Lib' do not match with execution data.
30- # For report generation the same class files must be used as at runtime.
31- # [WARNING] Execution data for class com/alibaba/xxx/Yyy does not match.
32- jvb::mvn_cmd -Pgen-code-cov -Dmaven.main.skip test coveralls:report
32+ jvb::mvn_cmd -Pgen-code-cov jacoco:prepare-agent surefire:test jacoco:report coveralls:report
You can’t perform that action at this time.
0 commit comments