Skip to content

Commit

Permalink
[improve][ci] Add schedule trigger to get master branch code coverage…
Browse files Browse the repository at this point in the history
… daily (apache#18081)
  • Loading branch information
yaalsn authored Oct 27, 2022
1 parent 59e00ba commit 5c1f8af
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pulsar-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ on:
pull_request:
branches:
- master
schedule:
- cron: '0 12 * * *'
workflow_dispatch:

concurrency:
Expand Down
8 changes: 6 additions & 2 deletions build/run_unit_group.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ set -e
set -o pipefail
set -o errexit

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

function mvn_test() {
(
Expand All @@ -33,7 +33,11 @@ function mvn_test() {
clean_arg="clean"
shift
fi
TARGET=verify
if echo "${FUNCNAME[@]}" | grep "flaky"; then
TARGET="verify"
else
TARGET="verify -Pcoverage"
fi
if [[ "$1" == "--install" ]]; then
TARGET="install"
shift
Expand Down

0 comments on commit 5c1f8af

Please sign in to comment.