Skip to content

Commit 5c1f8af

Browse files
authored
[improve][ci] Add schedule trigger to get master branch code coverage daily (apache#18081)
1 parent 59e00ba commit 5c1f8af

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/pulsar-ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ on:
2222
pull_request:
2323
branches:
2424
- master
25+
schedule:
26+
- cron: '0 12 * * *'
2527
workflow_dispatch:
2628

2729
concurrency:

build/run_unit_group.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ set -e
2424
set -o pipefail
2525
set -o errexit
2626

27-
MVN_TEST_OPTIONS='mvn -Pcoverage -B -ntp -DskipSourceReleaseAssembly=true -DskipBuildDistribution=true -Dspotbugs.skip=true -Dlicense.skip=true -Dcheckstyle.skip=true -Drat.skip=true'
27+
MVN_TEST_OPTIONS='mvn -B -ntp -DskipSourceReleaseAssembly=true -DskipBuildDistribution=true -Dspotbugs.skip=true -Dlicense.skip=true -Dcheckstyle.skip=true -Drat.skip=true'
2828

2929
function mvn_test() {
3030
(
@@ -33,7 +33,11 @@ function mvn_test() {
3333
clean_arg="clean"
3434
shift
3535
fi
36-
TARGET=verify
36+
if echo "${FUNCNAME[@]}" | grep "flaky"; then
37+
TARGET="verify"
38+
else
39+
TARGET="verify -Pcoverage"
40+
fi
3741
if [[ "$1" == "--install" ]]; then
3842
TARGET="install"
3943
shift

0 commit comments

Comments
 (0)