Skip to content

Just to learn how to use travis-ci in a java project!

License

Notifications You must be signed in to change notification settings

SladeGranger/travis-ci-tutorial-java

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Code Coverage

travis-ci-tutorial-java

Just to learn how to use travis-ci in a java project!

This is a working minimal example of how to use Travis CI (and Codecov) with Java on GitHub.

  • It uses the JUnit testing framework

Click here for the example using GitHub Actions instead of Travis CI

How To Start

  1. Fork this Repository
  2. Go to Travis CI and enable the repository
  3. Fix the README.md badges (replacing in the URL joaomlneto with your-github-username) and push the changes. This should trigger a build in Travis CI!

Optional: Code Coverage with CodeCov

This repository also integrates with Codecov to generate reports.

What's done for you:

  • The JaCoCo plugin is included in pom.xml
  • On .travis.yml, after_success target executes the Codecov script.

If you want to use it:

If you don't want it:

  • Remove the JaCoCo plugin from the pom.xml.
  • Remove the after_success target in .travis.yml
  • Remove the badge from README.md

Contributing

Spotted a mistake? Questions? Suggestions?
Open an Issue!

About

Just to learn how to use travis-ci in a java project!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%