File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -39,11 +39,12 @@ jobs:
3939 - name : Execute Java unit tests
4040 env :
4141 MVN_ARGS : ' -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
42- run : mvn verify -fae -DskipITs -Dskip.unit.tests $MVN_ARGS
42+ run : mvn verify -fae -DskipITs $MVN_ARGS
4343
4444 - name : Publish Java code coverage
45- env :
46- TRAVIS_BRANCH : ${{ github.ref }} # non PR only need to get last part
47- TRAVIS_PULL_REQUEST : ${{ github.event.number }}
48- TRAVIS_TAG : ${{ github.event.release.tag_name }}
49- run : build/publishCodeCoverage.sh
45+ if : github.ref == 'refs/heads/master'
46+ run : $HOME/codecov-bash.sh -s modules/coverage-reports/target/site/jacoco-aggregate -t $CODECOV_TOKEN
47+
48+ - name : Do not Publish Java code coverage
49+ if : !github.ref == 'refs/heads/master'
50+ printf ">>>>> Bypassing code coverage publish step for feature branch/PR build.\n"
You can’t perform that action at this time.
0 commit comments