Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lovepoem/codecov-travis-maven-junit4-example
codecov travis maven junit4 java1.7 example
https://github.com/lovepoem/codecov-travis-maven-junit4-example
codecov codecoverage travis
Last synced: 2 days ago
JSON representation
codecov travis maven junit4 java1.7 example
- Host: GitHub
- URL: https://github.com/lovepoem/codecov-travis-maven-junit4-example
- Owner: lovepoem
- Created: 2017-12-05T01:54:32.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-01-26T01:54:45.000Z (over 3 years ago)
- Last Synced: 2023-02-26T16:37:09.132Z (over 1 year ago)
- Topics: codecov, codecoverage, travis
- Language: Java
- Homepage:
- Size: 43.9 KB
- Stars: 6
- Watchers: 2
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Travis CI + [Codecov][0] + 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](https://github.com/lovepoem/codecov-travis-maven-junit4-example/blob/master/pom.xml#L40-L51)
* 2). Call `mvn cobertura:cobertura` and `mvn clean package` during your CI tests, [see here](https://github.com/lovepoem/codecov-travis-maven-junit4-example/blob/master/.travis.yml#L8-L9)
* 3). Call `bash <(curl -s https://codecov.io/bash)` at the end of your CI build, [see here](https://github.com/lovepoem/codecov-travis-maven-junit4-example/blob/master/.travis.yml#L11)
- Using Travis CI, CircleCI or AppVeyor **AND** the repository is public? **You're done!** No token needed.
- Otherwise, please add your [repository token token][5].## 2 : Add repository to travis ci and codev with github account
- login https://travis-ci.org/ and add lovepoem/codecov-travis-maven-junit4-example repository to https://travis-ci.org/
- login https://codecov.io/ and add lovepoem/codecov-travis-maven-junit4-example repository to https://codecov.io/## 3: Add travis and codecov icon in README.md
[![Build Status](https://travis-ci.org/lovepoem/codecov-travis-maven-junit4-example.svg?branch=master)](https://travis-ci.org/lovepoem/codecov-travis-maven-junit4-example)
[![codecov](https://codecov.io/gh/lovepoem/codecov-travis-maven-junit4-example/branch/master/graph/badge.svg)](https://codecov.io/gh/lovepoem/codecov-travis-maven-junit4-example)## 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
> - [Java JaCoCo Example][1]
> - [Android Example][3]
> - [Gradle Example][2][0]: https://codecov.io/
[1]: https://github.com/codecov/example-java
[2]: https://github.com/codecov/example-gradle
[3]: https://github.com/codecov/example-android
[5]: http://docs.codecov.io/docs/about-the-codecov-bash-uploader#section-upload-token