Closed musketyr closed 3 years ago
Actually, I might be mistaken. I haven't investigated further but I can publish to Coveralls using 0.31.2
. Version 0.37.0
does trigger the task but does not publish anything. I haven't tried the versions between these two.
Just verified that the last version working gracefully is 0.36.0
.
Thank you for the investigation. I believe 0.37.0
made changes in the DSL on how properties between child and root projects are evaluated. The problem might be related to that.
Could you quickly check if enabling coveralls
explicitly makes it work? config.coverage.coveralls.enabled = true
.
I think the problem may be relying on config.coverage.jacoco.enabled
by default.
The problem may start here
Given that Coveralls will check the following after merge
But JaCoCo is not yet ready by the time Coveralls makes the check.
it made it working - see https://github.com/agorapulse/micronaut-console/pull/3
I also have a build producing coverage reports but I don't require explicit enabling. However I do run aggregateJacocoReports
before coveralls
. Wonder if tasks dependencies are not working as they should.
ping @musketyr. Is this still an issue?
I still had to declare it explicitly
https://github.com/agorapulse/dru/blob/master/build.gradle#L119
út 26. 1. 2021 v 17:44 odesílatel Andres Almiray notifications@github.com napsal:
ping @musketyr https://github.com/musketyr. Is this still an issue?
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/kordamp/kordamp-gradle-plugins/issues/419#issuecomment-767672551, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFBHNLMVZWE4ZGVP5CGRZDS33WNNANCNFSM4TR7XHFA .
I see. So the workaround makes it work but it'd be better if it worked out of the box without extra configuration, right?
Yes. or at least explicitly documented.
I've tested with both single and multi-project builds that have at least 1 project with tests. As far as I can tell the coveralls
plugins is set as enabled when the project contains Java sources. However applying the configuration to the kordamp-gradle-plugins
build itself results in coveralls being disabled. Will keep looking.
Scratch that, it's not the fact that the project may contain Groovy code or not, it's if the rot project has tests or not. I believe I have found the cause of problem.
coveralls
task is never triggered even the env variablesCI
andCOVERALLS_REPO_TOKEN
are present for versions0.38.0
and later.example repository https://github.com/agorapulse/micronaut-console