Setup coveralls with Java projects
It feels painful every time configuring CI using coveralls. Here’s some hints when working with Java project.
- Get the plugin and JaCoCo
- Turn on the repository in Coveralls
- Set ‘repoToken’ in travis as environment variable
- Reference repoToken in pom of your project using ‘${env.repoToken}’ ```
5. Add this to your pom if it doesn't have source encoding
6. Add this to travis config file
after_success:
- mvn jacoco:report coveralls:report ```
References: