codecov-travis-maven-junit4-example

codecov travis maven junit4 java1.7 example

Stars
6
Committers
4

Travis CI + Codecov + Junit4 + cobertura + java1.7 + Maven Java Example

1: Add some code in pom.xml and .travis.yml

  • 1). Add cobertura-maven-plugin plugin to your pom.xml file, see here
  • 2). Call mvn cobertura:cobertura and mvn clean package during your CI tests, see here
  • 3). Call bash <(curl -s https://codecov.io/bash) at the end of your CI build, see here
    • Using Travis CI, CircleCI or AppVeyor AND the repository is public? You're done! No token needed.
    • Otherwise, please add your repository token token.

2 : Add repository to travis ci and codev with github account

3: Add travis and codecov icon in README.md

4: Notice

Use cobertura-maven-plugin plugin version 2.7 to collect test coverage without codecov token , can support jdk version: java1.7, java8+ will not maintained

So if you want to ues a higher jdk version , please see this repo : https://github.com/lovepoem/codecov-travis-maven-junit5-example

Other Official Examples