Skip to content

Commit 951e7b6

Browse files
committed
chore(ci): simplify codecov in AppVeyor
1 parent 14c2e5e commit 951e7b6

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ test_script:
3030
- scripts/integration_test
3131

3232
after_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

scripts/codecov

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ cd ..
2121
export DCM_AGENT_SUPRESS_EXCEPTION_STACK=true
2222

2323
prepare_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

2631
prepare_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

0 commit comments

Comments
 (0)